WrapperCompatible
public protocol WrapperCompatible
属性包装器兼容协议
自定义fw为任意名称(如app)示例:
extension WrapperCompatible {
public static var app: Wrapper
-
关联类型
Declaration
Swift
associatedtype WrapperBase
-
fw
Default implementation类包装器属性
Default Implementation
类包装器属性
Declaration
Swift
static var fw: Wrapper<WrapperBase>.Type { get set }
-
fw
Default implementation对象包装器属性
Default Implementation
对象包装器属性
Declaration
Swift
var fw: Wrapper<WrapperBase> { get set }