Type Aliases

The following type aliases are available globally.

WrapperGlobal

  • FW

    全局包装器别名

    自定义FW为任意名称(如APP)示例:

    public typealias APP = WrapperGlobal
    

    使用示例:

    APP.safeString(object)
    

    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

HelpingMapper

AttributedLabelURLDetector

AnyValidator

  • 任意值验证器

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

    Declaration

    Swift

    public typealias AnyValidator = Validator<Any>

Index

Block

  • 通用无参数block

    Declaration

    Swift

    public typealias BlockVoid = () -> ()
  • 通用Any参数block

    Declaration

    Swift

    public typealias BlockParam = (Any?) -> ()
  • 通用Bool参数block

    Declaration

    Swift

    public typealias BlockBool = (Bool) -> ()
  • 通用Int参数block

    Declaration

    Swift

    public typealias BlockInt = (Int) -> ()
  • 通用Double参数block

    Declaration

    Swift

    public typealias BlockDouble = (Double) -> ()
  • 通用(Bool, Any)参数block

    Declaration

    Swift

    public typealias BlockBoolParam = (Bool, Any?) -> ()
  • 通用(Int, Any)参数block

    Declaration

    Swift

    public typealias BlockIntParam = (Int, Any?) -> ()

PlatformView

  • Undocumented

    Declaration

    Swift

    public typealias PlatformView = UIView
  • Undocumented

    Declaration

    Swift

    public typealias PlatformViewController = UIViewController

PlatformViewVersion

Refresh