UIEdgeInsets
public extension UIEdgeInsets
-
Converts the
UIEdgeInsets
struct into aNSDirectionalEdgeInsets
where theleft
value is treated as theleading
and theright
as thetrailing
.Declaration
Swift
var directional: NSDirectionalEdgeInsets { get }
-
Returns a new edge insets with the value for
top
replaced.Declaration
Swift
func top(_ newValue: CGFloat) -> UIEdgeInsets
Parameters
newValue
The new value for
top
.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
left
replaced.Declaration
Swift
func left(_ newValue: CGFloat) -> UIEdgeInsets
Parameters
newValue
The new value for
left
.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
bottom
replaced.Declaration
Swift
func bottom(_ newValue: CGFloat) -> UIEdgeInsets
Parameters
newValue
The new value for
bottom
.Return Value
The edge insets with the value replaced.
-
Returns a new edge insets with the value for
right
replaced.Declaration
Swift
func right(_ newValue: CGFloat) -> UIEdgeInsets
Parameters
newValue
The new value for
right
.Return Value
The edge insets with the value replaced.
-
Inverts the edge insets.
Declaration
Swift
var inverted: UIEdgeInsets { get }