Type Aliases

The following type aliases are available globally.

WrapperGlobal

  • FW

    全局包装器别名

    Declaration

    Swift

    @_spi(FW)
    public typealias FW = WrapperGlobal

WrapperObject

  • 属性包装器对象,用于扩展AnyObject

    注意事项:

    1. 需要AnyObject通用的才扩展WrapperObject,否则扩展NSObject
    2. 静态static方法需要使用self的才扩展WrapperObject,否则扩展NSObject
    3. 扩展WrapperObject时如需使用static var变量,可借助NSObject的fileprivate扩展

    Declaration

    Swift

    public typealias WrapperObject = AnyObject & WrapperCompatible

AttributedLabelURLDetector

HelpingMapper

Block

  • 通用无参数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

Index

AnyValidator

  • 任意值验证器

    默认开启类型验证,当Validator类型转为AnyValidator时,如果value数据类型不匹配,会验证失败

    Declaration

    Swift

    public typealias AnyValidator = Validator<Any>

Refresh

PlatformView

  • Undocumented

    Declaration

    Swift

    public typealias PlatformView = UIView
  • Undocumented

    Declaration

    Swift

    public typealias PlatformViewController = UIViewController

PlatformViewVersion