Optional

extension Optional
extension Optional where Wrapped: FWSafeType

可选类安全转换,不为nil

Optional类暂不开放FWWrapper包装,防止Optional类fw属性和Wrapped类fw属性重复声明冲突

  • Undocumented

    Declaration

    Swift

    public var safeInt: Int { get }
  • Undocumented

    Declaration

    Swift

    public var safeBool: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var safeFloat: Float { get }
  • Undocumented

    Declaration

    Swift

    public var safeDouble: Double { get }
  • Undocumented

    Declaration

    Swift

    public var safeString: String { get }
  • Undocumented

    Declaration

    Swift

    public var safeNumber: NSNumber { get }
  • Undocumented

    Declaration

    Swift

    public var safeArray: [Any] { get }
  • Undocumented

    Declaration

    Swift

    public var safeDictionary: [AnyHashable : Any] { get }

Available where Wrapped: FWSafeType

  • Undocumented

    Declaration

    Swift

    public static var safeValue: Wrapped { get }
  • Undocumented

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var safeValue: Wrapped { get }