Constants
The following constants are available globally.
-
Golden ratio constant.
Declaration
Objective-C
extern const CGFloat MMMGoldenSwift
class let golden: CGFloat -
1 divided by golden ratio.
Declaration
Objective-C
extern const CGFloat MMMInverseGoldenSwift
class let inverseGolden: CGFloat -
Small screen phones: iPhone 4/4s/5/5s/SE.
Declaration
Objective-C
extern NSString *const _Nonnull MMMSizeClassicSwift
let MMMSizeClassic: String -
Regular phones: iPhone 6/6s/7/8 and X as well.
Declaration
Objective-C
extern NSString *const _Nonnull MMMSize6Swift
let MMMSize6: String -
Pluse-sized phones: iPhone 6/7/8 Plus.
Declaration
Objective-C
extern NSString *const _Nonnull MMMSize6PlusSwift
let MMMSize6Plus: String -
iPads: regular and pros.
Declaration
Objective-C
extern NSString *const _Nonnull MMMSizePadSwift
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 MMMSizeRestSwift
let MMMSizeRest: String
View on GitHub
Constants Reference