FileType

public enum FileType

Supported file types for saving objects conforming to GTStorable.

  • Encode and save data as JSON.

    Declaration

    Swift

    case json
  • Encode and save data as a Property List (plist).

    Declaration

    Swift

    case plist
  • Encode and save data using the NSKeyedArchiver class.

    Declaration

    Swift

    case archive
  • It returns the file extension based on the current file type value.

    Declaration

    Swift

    public func fileExtension() -> String