UIEdgeInsets
public extension UIEdgeInsets
-
Converts the
UIEdgeInsetsstruct into aNSDirectionalEdgeInsetswhere theleftvalue is treated as theleadingand therightas thetrailing.Declaration
Swift
var directional: NSDirectionalEdgeInsets { get } -
Returns a new edge insets with the value for
topreplaced.Declaration
Swift
func top(_ newValue: CGFloat) -> UIEdgeInsetsParameters
newValueThe new value for
top.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
leftreplaced.Declaration
Swift
func left(_ newValue: CGFloat) -> UIEdgeInsetsParameters
newValueThe new value for
left.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
bottomreplaced.Declaration
Swift
func bottom(_ newValue: CGFloat) -> UIEdgeInsetsParameters
newValueThe new value for
bottom.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
rightreplaced.Declaration
Swift
func right(_ newValue: CGFloat) -> UIEdgeInsetsParameters
newValueThe new value for
right.Return Value
The edge insets with the value replaced.
-
Inverts the edge insets.
Declaration
Swift
var inverted: UIEdgeInsets { get }
View on GitHub