LayoutOptions
public struct LayoutOptions : Equatable
Configuration options for caffeinated
.
Generally these are only useful for experimenting with the performance profile of different
element compositions, and you should stick with default
.
-
The default configuration.
Declaration
Swift
public static let `default`: LayoutOptions
-
Enables aggressive cache hinting along the boundaries of the range between constraints and measured sizes. Requires elements to conform to the Caffeinated Layout contract for correct behavior.
Declaration
Swift
public var hintRangeBoundaries: Bool
-
Allows cache misses on finite constraints to deduce a range-based match by searching for a hit on the unconstrained value for each axis. Requires elements to adhere to the Caffeinated Layout contract for correct behavior.
Declaration
Swift
public var searchUnconstrainedKeys: Bool
-
Declaration
Swift
public init(hintRangeBoundaries: Bool, searchUnconstrainedKeys: Bool)