RSDResourceTransformerObject
public struct RSDResourceTransformerObject : Codable
RSDResourceTransformerObject is a concrete implementation of a codable resource transformer. The transformer
can be used to create an object decoded from an embedded resource.
-
Either a fully qualified URL string or else a relative reference to either an embedded resource or a relative URL defined globally by overriding the
RSDResourceConfigclass methods.Declaration
Swift
public let resourceName: String -
The bundle identifier for the embedded resource.
Declaration
Swift
public let bundleIdentifier: String? -
The classType for converting the resource to an object. This is a hint that subclasses of
RsDFactorycan use to determine the type of object to instantiate.Declaration
Swift
public let classType: String? -
Default initializer for creating the object.
Declaration
Swift
public init(resourceName: String, bundleIdentifier: String? = nil, classType: String? = nil)Parameters
resourceNameThe name of the resource.
bundleIdentifierThe bundle identifier for the embedded resource.
classTypeThe classType for converting the resource to an object.
View on GitHub
RSDResourceTransformerObject Structure Reference