/
Launch Apollo Studio


EXTENSION

Decodable

public extension Decodable

Methods

load(from:decoder:)

static func load<T: FlexibleDecoder>(from fileURL: URL, decoder: T) throws -> Self

Loads data from a given file URL and parses it with the given decoder.

  • Parameters:

    • fileURL: The file URL to load from
    • decoder: A decoder to use.
  • Returns: The parsed object of the calling type

Parameters

NameDescription
fileURLThe file URL to load from
decoderA decoder to use.
Edit on GitHub