String

struct String
  • The String instance as a Data.

    Declaration

    Swift

    public var dataValue: Data?
  • This extension method wraps NSLocalizedString returning the translated text.

    Declaration

    Swift

    public static func localize(_ key: String, comment: String = "") -> String
  • This extension method wraps NSLocalizedString returning the translated text.

    Declaration

    Swift

    public static func localize(_ key: String, comment: String = "", bundle: Bundle = Bundle.main) -> String
  • A percent escaped value for form encoding.

    Remark

    The encoding supports Base64 string values. Does not include ? or / due to RFC 3986 - Section 3.4

    Declaration

    Swift

    public var urlSafeEncodedValue: String
  • Returns a Data decoded from a base32 string.

    Declaration

    Swift

    public var base32DecodedData: Data?