Constants

The following constants are available globally.

  • Golden ratio constant.

    Declaration

    Objective-C

    extern const CGFloat MMMGolden

    Swift

    class let golden: CGFloat
  • 1 divided by golden ratio.

    Declaration

    Objective-C

    extern const CGFloat MMMInverseGolden

    Swift

    class let inverseGolden: CGFloat
  • Small screen phones: iPhone 4/4s/5/5s/SE.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MMMSizeClassic

    Swift

    let MMMSizeClassic: String
  • Regular phones: iPhone 6/6s/7/8 and X as well.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MMMSize6

    Swift

    let MMMSize6: String
  • Pluse-sized phones: iPhone 6/7/8 Plus.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MMMSize6Plus

    Swift

    let MMMSize6Plus: String
  • iPads: regular and pros.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MMMSizePad

    Swift

    let MMMSizePad: String
  • Not the actual size class, but can be used as a key valueForCurrentSizeClass: and related methods for a fallback value.

    Declaration

    Objective-C

    extern NSString *const _Nonnull MMMSizeRest

    Swift

    let MMMSizeRest: String