LayoutMode
public enum LayoutMode : Equatable
extension LayoutMode: CustomStringConvertible
Controls the layout system that Blueprint uses to lay out elements.
Blueprint supports multiple layout systems. Each is expected to produce the same result, but some may have different performance profiles or special requirements.
You can change the layout system used by setting the layoutMode
property, but
generally you should use the default
option.
Changing the default will cause all instances of BlueprintView
to be invalidated, and re-
render their contents.
-
Declaration
Swift
public static var `default`: `Self` { get set }
-
The “standard” layout system.
Declaration
Swift
case legacy
-
A newer layout system with some optimizations made possible by ensuring elements adhere to a certain contract for behavior.
Declaration
Swift
case caffeinated(options: LayoutOptions = .default)
-
A newer layout system with some optimizations made possible by ensuring elements adhere to a certain contract for behavior.
Declaration
Swift
public static let caffeinated: LayoutMode
-
The name of the layout mode.
Declaration
Swift
public var name: String { get }
-
Declaration
Swift
public var description: String { get }