Inset
public struct Inset : Element
Insets a content element within a layout.
Commonly used to add padding around another element when displayed within a container.
-
The wrapped element to be inset.
Declaration
Swift
public var wrappedElement: Element
-
The amount to inset the content element.
Declaration
Swift
public var top: CGFloat
-
Declaration
Swift
public var bottom: CGFloat
-
Declaration
Swift
public var left: CGFloat
-
Declaration
Swift
public var right: CGFloat
-
Declaration
Swift
public init( top: CGFloat = 0.0, bottom: CGFloat = 0.0, left: CGFloat = 0.0, right: CGFloat = 0.0, wrapping element: Element )
-
Declaration
Swift
public init(uniformInset: CGFloat, wrapping element: Element)
-
Declaration
Swift
public init(insets: UIEdgeInsets, wrapping element: Element)
-
Declaration
Swift
public init(sideInsets: CGFloat, wrapping element: Element)
-
Declaration
Swift
public init(vertical: CGFloat, wrapping element: Element)
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?