LayoutSubview
A proxy that represents one subview of a layout.
Declaration
struct LayoutSubviewOverview
This type acts as a proxy for a view that your custom layout container places in the user interface. Layout protocol methods receive a LayoutSubviews collection that contains exactly one proxy for each of the subviews arranged by your container.
Use a proxy to get information about the associated subview, like its dimensions, layout priority, or custom layout values. You also use the proxy to tell its corresponding subview where to appear by calling the proxy’s place(at:anchor:proposal:) method. Do this once for each subview from your implementation of the layout’s placeSubviews(in:proposal:subviews:cache:) method.
You can read custom layout values associated with a subview by using the property’s key as an index on the subview. For more information about defining, setting, and reading custom values, see LayoutValueKey.