NativeView
public protocol NativeView
Marker protocol used by generic extensions to native views (e.g. UIView
).
-
describe(_:
Extension method) Generates a view description for the receiving class. Example:
let viewDescription = UILabel.describe { config in config[\.text] = "Hello, world" config[\.textColor] = UIColor.orange }
Declaration
Swift
public static func describe(_ configuring: (inout ViewDescription.Configuration<Self>) -> Void) -> ViewDescription
Parameters
configuring
A closure that is responsible for populating a configuration object.
Return Value
The resulting view description.