Box
public struct Box : Element
A simple element that wraps a child element and adds visual styling including background color.
-
The background color to show in the box.
Declaration
Swift
public var backgroundColor: UIColor
-
The corner style to apply, eg rounded, capsule, or normal, square corners.
Declaration
Swift
public var cornerStyle: CornerStyle
-
How to style the curves when
cornerStyle
is non-square.Declaration
Swift
public var cornerCurve: CornerCurve
-
The border to apply around the edges of the box.
Declaration
Swift
public var borderStyle: BorderStyle
-
The shadow style to apply to the outside of the box.
Declaration
Swift
public var shadowStyle: ShadowStyle
-
If content placed within the box should be clipped.
Declaration
Swift
public var clipsContent: Bool
-
Declaration
Swift
public var wrappedElement: Element?
-
Declaration
Swift
public init( backgroundColor: UIColor = .clear, cornerStyle: CornerStyle = .square, cornerCurve: CornerCurve = .circular, borderStyle: BorderStyle = .none, shadowStyle: ShadowStyle = .none, clipsContent: Bool = false, wrapping element: Element? = nil )
-
Declaration
Swift
public var content: ElementContent { get }
-
Declaration
Swift
public func backingViewDescription(with context: ViewDescriptionContext) -> ViewDescription?
-
Declaration
Swift
public typealias CornerStyle = BlueprintUICommonControls.CornerStyle
-
Declaration
Swift
public enum BorderStyle
-
Declaration
Swift
public enum ShadowStyle