Type Aliases
The following type aliases are available globally.
-
全局包装器别名
Declaration
Swift
@_spi(FW) public typealias FW = WrapperGlobal
-
属性包装器对象,用于扩展AnyObject
注意事项:
- 需要AnyObject通用的才扩展WrapperObject,否则扩展NSObject
- 静态static方法需要使用self的才扩展WrapperObject,否则扩展NSObject
- 扩展WrapperObject时如需使用static var变量,可借助NSObject的fileprivate扩展
Declaration
Swift
public typealias WrapperObject = AnyObject & WrapperCompatible
-
Undocumented
Declaration
Swift
public typealias AttributedLinkDetectCompletion = (_ links: [AttributedLabelURL]?) -> Void
-
Undocumented
Declaration
Swift
public typealias CustomMappingKeyValueTuple = (String, MappingPropertyHandler)
-
通用无参数block
Declaration
Swift
public typealias BlockVoid = () -> Void
-
通用Any参数block
Declaration
Swift
public typealias BlockParam = (Any?) -> Void
-
通用Bool参数block
Declaration
Swift
public typealias BlockBool = (Bool) -> Void
-
通用Int参数block
Declaration
Swift
public typealias BlockInt = (Int) -> Void
-
通用Double参数block
Declaration
Swift
public typealias BlockDouble = (Double) -> Void
-
通用(Bool, Any)参数block
Declaration
Swift
public typealias BlockBoolParam = (Bool, Any?) -> Void
-
通用(Int, Any)参数block
Declaration
Swift
public typealias BlockIntParam = (Int, Any?) -> Void
-
Undocumented
Declaration
Swift
public typealias JSONRawIndex = Index<Any>
-
任意值验证器
默认开启类型验证,当Validator
类型转为AnyValidator时,如果value数据类型不匹配,会验证失败 Declaration
Swift
public typealias AnyValidator = Validator<Any>
-
Undocumented
Declaration
Swift
public typealias PlatformView = UIView
-
Undocumented
Declaration
Swift
public typealias PlatformViewController = UIViewController
-
Undocumented
Declaration
Swift
public typealias iOSViewVersion<SwiftUIViewType: IntrospectableViewType, PlatformSpecificEntity: PlatformEntity> = PlatformViewVersion<iOSVersion, SwiftUIViewType, PlatformSpecificEntity>