encode(with:)
Encodes the region using the specified encoder.
Declaration
func encode(with encoder: NSCoder)Parameters
- encoder:
An encoder instance to use.
Discussion
This method throws an exception if the caption region’s size has different units for width and height, or if the units are unrecognizeable.