DirectionalEdgeInsetsConvertible
public protocol DirectionalEdgeInsetsConvertible
A type that can be converted to directional or fixed edge insets.
-
Converts the value into
NSDirectionalEdgeInsets
.Declaration
Swift
@available(iOS 11.0, macCatalyst 10.15, *) func directionalEdgeInsets( for traitCollection: UITraitCollection? ) -> NSDirectionalEdgeInsets
Parameters
traitCollection
The trait collection relative to which the direction is computed, using its
layoutDirection
property. -
Converts the value into
UIEdgeInsets
.Declaration
Swift
func fixedEdgeInsets( for traitCollection: UITraitCollection? ) -> UIEdgeInsets
Parameters
traitCollection
The trait collection relative to which the direction is computed, using its
layoutDirection
property.