ResourceLoader
public protocol ResourceLoader
You can extend the range of resources and even the way resources are loaded by implementing your own ResourceLoader.
-
Retreives a resource of the specied type from the specified
URL. The returned object will be cachedDeclaration
Swift
func retrieve<R>(asType: R.Type, from url: URL) throws -> R where R : LoadableParameters
asTypeThe type that the
ResourceLoadershould retreiveurlThe
URLof the resource
View on GitHub
ResourceLoader Protocol Reference