Returns the size required to draw the string.
- iOS 6.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The minimum size required to draw the entire contents of the string.
You can use this method prior to drawing to compute how much space is required to draw the string.
This method may return fractional sizes. When setting the size of your view, use the
ceil function to round fractional values up to the nearest whole number.