Skip to content

decodeUrl(__with_)

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

decodeUrl(_:with:)

Decode a URL to the type T using either asyncData() for the Production Server; or using decode() for the Mock Server.

public func decodeUrl<T: Decodable>(
        _ type: T.Type = T.self,
        with url: URL
    )

Parameters

  • type: The type of T that the data will decode to.
  • url: The input url of type URL that will be fetched.
  • apiKey: The API Key for use with the Production Server.

Returns

The decoded object of type T.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally