Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 628 Bytes

ZStack.md

File metadata and controls

48 lines (29 loc) · 628 Bytes

ZStack

ZStack:​ A view which stacks its children views in order

@available(iOS 9.0, *) public class ZStack: UIView

Inheritance

UIView

Initializers

init(_:)

Create a ZStack

public init(_ closure: () -> [UIView])

Parameters

  • closure: A trailing closure that accepts an array of views

init(_:)

Create a ZStack

public init(_ closure: () -> [UIView?])

Parameters

  • closure: A trailing closure that accepts an array of optional views

Properties

views

The views that the ZStack contains

var views: [UIView] = []