ZStack
public struct ZStack : View
extension ZStack: Renderable
This view arranges subviews one in front of the other, using the z axis.
-
Declaration
Swift
public var viewStore: ViewValues -
Creates an instance of a view that arranges subviews horizontally.
Declaration
Swift
public init(alignment: Alignment = .center, @ViewBuilder content: () -> View)Parameters
alignmentThe alignment guide for its children. Defaults to
center.contentA view builder that creates the content of this stack. The last view will be the topmost view.
-
Declaration
Swift
public var body: View { get } -
Declaration
Swift
public func createView(context: Context) -> UIView -
Declaration
Swift
public func updateView(_ view: UIView, context: Context)
View on GitHub
ZStack Structure Reference