Type Method

setValueTransformer(_:forName:)

Registers the provided value transformer with a given identifier.

Declaration

class func setValueTransformer(_ transformer: ValueTransformer?, forName name: NSValueTransformerName)

Parameters

transformer

The transformer to register.

name

The name for transformer.

See Also

Using the Name-Based Registry

init?(forName: NSValueTransformerName)

Returns the value transformer identified by a given identifier.

class func valueTransformerNames() -> [NSValueTransformerName]

Returns an array of all the registered value transformers.

struct NSValueTransformerName

Named value transformers defined by NSValueTransformer.