NatBorderRadius
public enum NatBorderRadius
NatBorderRadius is a enum that has access to radius properties from the Design System. This properties are used to set corner radius of view’s layer. According with the current Brand in the Design System this properties can change.
All properties returns a CGFloat.
Example of usage:
containerView.layer.cornerRadius = NatBorderRadius.small
button.layer.cornerRadius = NatBorderRadius.circle(viewHeight: DSSizes.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 small: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var medium: CGFloat { get }
-
Undocumented
Declaration
Swift
public static var large: CGFloat { get }
-
Undocumented
Declaration
Swift
public static func circle(viewHeight: CGFloat) -> CGFloat