Detecta el dispositivo actual con UI_USER_INTERFACE_IDIOM () en Swift

¿Cuál es el equivalente deUI_USER_INTERFACE_IDIOM() en Swift para detectar entre iPhone y iPad?

Consigo unUse of unresolved identifier error al compilar en Swift.