Functions
The following functions are available globally.
-
Creates a
UIEdgeInsets
structure using constant insets.Declaration
Swift
public func constantInsets(_ constant: CGFloat) -> UIEdgeInsets
Parameters
constant
The inset constant.
Return Value
A
UIEdgeInsets
with every value initialized to the value ofconstant
. -
Determines if two
DirectionalEdgeInsetsConvertible
values are equivalent.Declaration
Swift
public func == (_ lhs: DirectionalEdgeInsetsConvertible, _ rhs: DirectionalEdgeInsetsConvertible) -> Bool
Parameters
lhs
The first
DirectionalEdgeInsetsConvertible
value.rhs
The second
DirectionalEdgeInsetsConvertible
value.Return Value
true
if thefixedEdgeInsets(for:)
method using anil
trait collection returns the sameUIEdgeInsets
value for bothlhs
andrhs
. -
Determines if two
ViewEdgeConvertible
values are equivalent.Declaration
Swift
public func == (_ lhs: ViewEdgeConvertible, _ rhs: ViewEdgeConvertible) -> Bool
Parameters
lhs
The first
ViewEdgeConvertible
value.rhs
The second
ViewEdgeConvertible
value.Return Value
true
if the values are equivalent in both left-to-right and right-to-left triat collections.