ZStack
@available(iOS 9.0, *)
public class ZStack : UIView
ZStack: A view which stacks its children views in order
-
The views that the ZStack contains
Declaration
Swift
public var views: [UIView]
-
Create a ZStack
Declaration
Swift
public init(_ closure: () -> [UIView])
Parameters
closure
A trailing closure that accepts an array of views
-
Create a ZStack
Declaration
Swift
public init(_ closure: () -> [UIView?])
Parameters
closure
A trailing closure that accepts an array of optional views