MTSpriteDecodable
public enum MTSpriteDecodable : Decodable, Equatable
A custom decoder for the sprite field in the style JSON, which can be either a single string (URL)
or an array of objects containing id and url.
-
Undocumented
Declaration
Swift
case single(URL) -
Undocumented
Declaration
Swift
case multiple([MTStyleSprite]) -
Declaration
Swift
public init(from decoder: Decoder) throws -
Flattens the parsed sprites into a uniform array of
MTStyleSprite.Declaration
Swift
public var sprites: [MTStyleSprite] { get }