Creates a transform computation object.


func SecTransformCreate(_ name: CFString, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransform?



The type of transform to create. Use one of the pre-defined transform types or a custom type that you previously registered using SecTransformRegister(_:_:_:).


A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object's memory. Pass NULL to ignore the error.

Return Value

A new transform or nil on failure.

See Also

Custom Transforms

typealias SecTransformCreateFP

A pointer to a function that creates a new instance of a custom transform.

typealias SecTransformInstanceBlock

A block that you return from a transform creation function.

typealias SecTransformImplementationRef

An opaque pointer to a block that implements an instance of a transform.