Spacer
public struct Spacer : View
extension Spacer: Renderable
A view that expands infinitely as much as it is allowed by
its parent view. Spacers should only be used inside HStack or
VStack, otherwise it’s behavior will be undefined.
When inside a HStack, the spacer will expand horizontally.
When inside a VStack, the spacer will expand vertically.
-
Declaration
Swift
public var viewStore: ViewValues -
Declaration
Swift
public var body: View { get } -
Declaration
Swift
public init() -
Declaration
Swift
public func createView(context: Context) -> UIView -
Declaration
Swift
public func updateView(_ view: UIView, context: Context)
View on GitHub
Spacer Structure Reference