Enumerations
The following enumerations are available globally.
-
Used to convert an Apple device model name (in the form
iPhone10,3
) to a human readable form (such asiPhoneX
). This enum works with theHardwareInformation
class to get the type of device the app is running on.Example:
See more// Get human-readable name (iPhoneX) let device = AppleHardwareType(fromModel: "iPhone10,3")
Declaration
Swift
public enum AppleHardwareType