Typealiases

The following typealiases are available globally.

  • The type of object returned by JSONSerialization.jsonObject() to represent a JSON dictionary.

    Declaration

    Swift

    public typealias JSONDictionary = [String: Any]
  • The type of object returned by JSONSerialization.jsonObject() to represent a JSON array.

    Declaration

    Swift

    public typealias JSONArray = [Any]
  • Represents the image type appropriate for the runtime platform. On iOS and tvOS, PlatformImageType is UIImage; on macOS, NSImage; and on watchOS, WKImage.

    Declaration

    Swift

    public typealias PlatformImageType = NSImage