The following protocols are available globally.
A protocol for types that layout view frames.
Many UIs can be expressed by composing the basic layouts that LayoutKit provides:
If your UI can not be expressed by composing these basic layouts, then you can create a custom layout. Custom layouts are recommended but not required to conform to the
ConfigurableLayoutprotocol due to the type safety and default implementation that it adds.
Layout is performed in two steps:
arrangement(origin:width:height:)is a convenience method for doing both passes in one function call.
Layouts MUST be thread-safe.See more
public protocol Layout