Converts a metadata object’s visual properties to layer coordinates.
- iOS 6.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The metadata object whose visual properties you want to convert. The metadata object must originate from the same
AVCaptureas the preview layer.
A metadata object whose visual properties have been converted into layer coordinates, or
nil if the
metadata originates from an input source other than that of the preview layer.
A metadata object’s bounds may be expressed as a rectangle, where an origin point of (0.0, 0.0) represents the top-left corner of an unrotated picture and (1.0, 1.0) represents the bottom-right corner of an unrotated picture. Face metadata objects also express a yaw and roll angle with respect to an unrotated picture. This method converts all of the metadata object’s visual properties to the coordinate space of the layer, taking into account the layer’s orientation, mirroring, bounds, and