SingleTraitLayout
public protocol SingleTraitLayout
A protocol for layouts that have a single associated trait type.
Legacy layout implementations can implement this protocol to easily apply and read their traits without defining a custom trait key type.
-
Declaration
Swift
associatedtype Traits
-
Returns a default traits object.
Declaration
Swift
static var defaultTraits: Self.Traits { get }