Contents

init(markup:supportedFeatureSet:)

Creates a new markup view controller with the provided data model.

Declaration

@MainActor @preconcurrency init(markup: PaperMarkup? = nil, supportedFeatureSet: FeatureSet)

Parameters

  • markup:

    The data model to show on this canvas. The default value is nil.

  • supportedFeatureSet:

    The features this view controller supports.

Discussion

The canvas limits the edits that a person can make so they’re compatible with the feature set specified. If you set a supportedFeatureSet, also use a similar feature set to configure any MarkupToolbarViewController or MarkupEditViewController you use.