Condition

public enum Condition : String, CaseIterable

Enum class used for strongly tpying A/B conditions. Conditions must be listed here to be used as conditions on the server.

  • The current version of the running application. E.g. 52.0 (this is not the build number).

    Declaration

    Swift

    case appVersion
  • The current build number of the running application. E.g. 4356092 (this is not the app version).

    Declaration

    Swift

    case buildNumber
  • The generation of the running device. E.g. 10 (Where there have been 10 devices released, this would represent the newest device).

    Declaration

    Swift

    case deviceGeneration
  • The current model of the running device. E.g. iPhone12.5 (iPhone 11 Pro Max). These can be found here https://gist.github.com/adamawolf/3048717.

    Declaration

    Swift

    case deviceModel
  • The name assigned, by the device user, to the running device. E.g. Brandon's iPhone 11 Pro Max.

    Declaration

    Swift

    case deviceName
  • The type of device currently being used. E.g. simulator, phone, tablet, etc.

    Declaration

    Swift

    case deviceType
  • Will always return iOS.

    Declaration

    Swift

    case operatingSystem
  • The cohort of users the running device falls into. This is based on ShuntingYardResolver.instance.cohortPercentage.

    Declaration

    Swift

    case percentage
  • Current operating system version on the running device. E.g. 13.3.

    Declaration

    Swift

    case systemVersion