<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PaperKit",
  "identifier" : "/documentation/PaperKit/FeatureSet",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PaperKit"
    ],
    "preciseIdentifier" : "s:8PaperKit10FeatureSetV"
  },
  "title" : "FeatureSet"
}
-->

# FeatureSet

The features PaperKit supports in its UI and data models.

```
struct FeatureSet
```

## Topics

### Creating a feature set

[`version1`](/documentation/PaperKit/FeatureSet/version1)

A new feature set supporting all features in version 1.

[`latest`](/documentation/PaperKit/FeatureSet/latest)

A new feature set supporting all features.

[`empty`](/documentation/PaperKit/FeatureSet/empty)

A maximally empty feature set.

### Configuring features

[`features`](/documentation/PaperKit/FeatureSet/features)

The supported features.

[`shapes`](/documentation/PaperKit/FeatureSet/shapes)

The supported shape types.

[`inks`](/documentation/PaperKit/FeatureSet/inks)

The supported ink types.

[`contentVersion`](/documentation/PaperKit/FeatureSet/contentVersion-swift.property)

The PaperKit version the feature set supports.

[`lineMarkerPositions`](/documentation/PaperKit/FeatureSet/lineMarkerPositions-swift.property)

The allowed ends of line for arrows.

[`colorMaximumLinearExposure`](/documentation/PaperKit/FeatureSet/colorMaximumLinearExposure)

The maximum exposure to allow for choosing colors.

### Checking features

[`contains(_:)`](/documentation/PaperKit/FeatureSet/contains(_:))

Returns a Boolean value that indicates whether the given feature exists in the set.

[`isSubset(of:)`](/documentation/PaperKit/FeatureSet/isSubset(of:))

Returns a Boolean value that indicates whether this feature set is a subset of the given feature set.

[`insert(_:)`](/documentation/PaperKit/FeatureSet/insert(_:))

Inserts the given feature in the set if it is not already present.

[`remove(_:)`](/documentation/PaperKit/FeatureSet/remove(_:))

Removes the given feature.

### Describing feature types

[`Feature`](/documentation/PaperKit/FeatureSet/Feature)

The features that PaperKit markup supports.

[`ContentVersion`](/documentation/PaperKit/FeatureSet/ContentVersion-swift.enum)

[`LineMarkerPositions`](/documentation/PaperKit/FeatureSet/LineMarkerPositions-swift.struct)

The arrow marker positions for the ends of a line.

## Relationships

### Conforms To

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

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

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

---

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)