<!--
{
  "availability" : [
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/MarkupToolbarViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "c:@M@PaperKit@objc(cs)MarkupToolbarViewController"
  },
  "title" : "MarkupToolbarViewController"
}
-->

# MarkupToolbarViewController

```
@MainActor @objc @preconcurrency class MarkupToolbarViewController
```

## Topics

### Creating a toolbar

[`init(supportedFeatureSet: FeatureSet)`](/documentation/PaperKit/MarkupToolbarViewController/init(supportedFeatureSet:))

Creates a markup toolbar view controller.

[`init?(coder: NSCoder)`](/documentation/PaperKit/MarkupToolbarViewController/init(coder:))

### Configuring the toolbar

[`let supportedFeatureSet: FeatureSet`](/documentation/PaperKit/MarkupToolbarViewController/supportedFeatureSet)

The supported features of this toolbar.

[`var delegate: (any MarkupToolbarViewController.Delegate)?`](/documentation/PaperKit/MarkupToolbarViewController/delegate-swift.property)

The delegate for responding to user actions.

### Managing touch modes

[`var indirectPointerTouchModes: [PaperMarkupViewController.TouchMode]`](/documentation/PaperKit/MarkupToolbarViewController/indirectPointerTouchModes)

The modes available for a user to select.

[`var selectedIndirectPointerTouchMode: PaperMarkupViewController.TouchMode`](/documentation/PaperKit/MarkupToolbarViewController/selectedIndirectPointerTouchMode)

The currently selected pointer mode.

### Managing drawing tools

[`var selectedDrawingTool: any PKTool`](/documentation/PaperKit/MarkupToolbarViewController/selectedDrawingTool)

The currently selected drawing tool.

[`var selectedDrawingToolItem: PKToolPickerItem`](/documentation/PaperKit/MarkupToolbarViewController/selectedDrawingToolItem)

The currently selected drawing tool.

### Responding to changes

[`protocol Delegate`](/documentation/PaperKit/MarkupToolbarViewController/Delegate-swift.protocol)

The delegate for a PaperKit toolbar.

### Managing view lifecycle

[`func viewDidLoad()`](/documentation/PaperKit/MarkupToolbarViewController/viewDidLoad())

## Relationships

### Conforms To

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`UIUserActivityRestoring`](/documentation/UIKit/UIUserActivityRestoring)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`UIAppearanceContainer`](/documentation/UIKit/UIAppearanceContainer)

[`Copyable`](/documentation/Swift/Copyable)

[`UIResponderStandardEditActions`](/documentation/UIKit/UIResponderStandardEditActions)

[`NSExtensionRequestHandling`](/documentation/Foundation/NSExtensionRequestHandling)

[`NSEditor`](/documentation/AppKit/NSEditor)

[`UITraitEnvironment`](/documentation/UIKit/UITraitEnvironment)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`UITraitChangeObservable-67e94`](/documentation/UIKit/UITraitChangeObservable-67e94)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Observable`](/documentation/Observation/Observable)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`UIFocusEnvironment`](/documentation/UIKit/UIFocusEnvironment)

[`NSSeguePerforming`](/documentation/AppKit/NSSeguePerforming)

[`UIPasteConfigurationSupporting`](/documentation/UIKit/UIPasteConfigurationSupporting)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`Equatable`](/documentation/Swift/Equatable)

[`UIStateRestoring`](/documentation/UIKit/UIStateRestoring)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`UIContentContainer`](/documentation/UIKit/UIContentContainer)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`UIActivityItemsConfigurationProviding`](/documentation/UIKit/UIActivityItemsConfigurationProviding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`UIViewController`](/documentation/UIKit/UIViewController)

[`NSViewController`](/documentation/AppKit/NSViewController)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)