AI-generated Key Takeaways
-
The
WritingAreaclass defines the properties of the on-screen area where users can draw ink. -
It includes properties for width and height, measured in the same units as
StrokePoint. -
A
WritingAreaobject is initialized with specific width and height values, using consistent units withInkand related objects. -
The default initializer is unavailable; developers should use
init(width:height:)to create aWritingAreainstance.
WritingArea
class WritingArea : NSObjectProperties of the writing area.
The writing area is the area on the screen where the user can draw an ink.
-
Writing area width, in the same units as used in
StrokePoint.Declaration
Swift
var width: Float { get } -
Writing area height, in the same units as used in
StrokePoint.Declaration
Swift
var height: Float { get } -
Unavailable. Use
init(width:height:)instead. -
Initializes and returns a
WritingAreawith specified dimensions.The same unit is expected for both dimensions, and must match the unit used in
Inkand related objects.Declaration
Swift
init(width: Float, height: Float)Parameters
widthWidth of the writing area.
heightHeight of the writing area.