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 as iPhoneX). This enum works with the HardwareInformation class to get the type of device the app is running on.

    Example:

    // Get human-readable name (iPhoneX)
    let device = AppleHardwareType(fromModel: "iPhone10,3")
    
    See more

    Declaration

    Swift

    public enum AppleHardwareType