MLKitDigitalInkRecognition Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

WritingArea

class WritingArea : NSObject

Properties 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 WritingArea with specified dimensions.

    The same unit is expected for both dimensions, and must match the unit used in Ink and related objects.

    Declaration

    Swift

    init(width: Float, height: Float)

    Parameters

    width

    Width of the writing area.

    height

    Height of the writing area.