NatSpacing
public enum NatSpacing
NatSpacing is a enum that has access to spacing properties from the Design System. This properties are used with constraints to handle view spaces between other views or view properties like safeAreaLayoutGuide. According with the current Brand in the Design System this spacing properties can change.
All properties returns a CGFloat.
Example of usage:
containerView.topAnchor.constraint(equalTo: view.topAnchor, constant: NatSpacing.tiny)
containerView.bottomAnchor.constraint(equalTo: view.bottomAnchor, constant: NatSpacing.large)
Requires
It’s necessary to configure the Design System with a theme or fatalError will be raised.
DesignSystem().configure(with: AvailableTheme)
-
Undocumented
Declaration
Swift
public static var none: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var micro: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var tiny: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var small: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var standard: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var semi: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var large: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var xLarge: CGFloat { get }