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