Returns the location at which text is drawn.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 7.1+
Framework
- Core Graphics
Declaration
var textPosition: CGPoint { get set }
Parameters
c
The graphics context from which to obtain the current text position.
Return Value
Returns a point that specifies the x and y values at which text is to be drawn, in user space coordinates.