contentVersion
TypeScriptget contentVersion(): FeatureSet_ContentVersionSwift declarationvar contentVersion: FeatureSet.ContentVersionThe PaperKit version the feature set supports.
struct · iOS 26.0+ · SDK 27.1
struct FeatureSetThe features PaperKit supports in its UI and data models.
get contentVersion(): FeatureSet_ContentVersionSwift declarationvar contentVersion: FeatureSet.ContentVersionThe PaperKit version the feature set supports.
set contentVersion(value: FeatureSet_ContentVersion)Swift declarationvar contentVersion: FeatureSet.ContentVersionThe PaperKit version the feature set supports.
get lineMarkerPositions(): FeatureSet_LineMarkerPositionsSwift declarationvar lineMarkerPositions: FeatureSet.LineMarkerPositionsThe allowed ends of line for arrows. Default is `.all`.
set lineMarkerPositions(value: FeatureSet_LineMarkerPositions)Swift declarationvar lineMarkerPositions: FeatureSet.LineMarkerPositionsThe allowed ends of line for arrows. Default is `.all`.
get colorMaximumLinearExposure(): numberSwift declarationvar colorMaximumLinearExposure: CGFloatThe maximum exposure to allow for choosing colors. Default is 1.0, which is SDR.
set colorMaximumLinearExposure(value: number)Swift declarationvar colorMaximumLinearExposure: CGFloatThe maximum exposure to allow for choosing colors. Default is 1.0, which is SDR.
get inks(): Array<_PencilKit_PKInkingTool_InkType>Swift declarationvar inks: Set<PKInkingTool.InkType>The supported ink types. Defaults to all inks.
set inks(value: Array<_PencilKit_PKInkingTool_InkType>)Swift declarationvar inks: Set<PKInkingTool.InkType>The supported ink types. Defaults to all inks.
static get empty(): FeatureSetSwift declarationstatic var empty: FeatureSet { get }A maximally empty feature set.
insert(newFeature: FeatureSet_Feature): voidSwift declarationmutating func insert(_ newFeature: FeatureSet.Feature)Inserts the given feature in the set if it is not already present. - Parameter newFeature: A feature to insert into the set.
static get latest(): FeatureSetSwift declarationstatic var latest: FeatureSet { get }A new feature set supporting all features. To automatically get the latest features that PaperKit adds in new releases use `.latest`, to avoid new releases adding unexpected functionality to your app use a specific version like `.version1`.
remove(feature: FeatureSet_Feature): voidSwift declarationmutating func remove(_ feature: FeatureSet.Feature)Removes the given feature. - Parameter feature: The feature to remove from the set.
get shapes(): Array<ShapeConfiguration_Shape>Swift declarationvar shapes: Set<ShapeConfiguration.Shape>The supported shape types. Default is all shapes. Set to an empty set to disable all shapes.
set shapes(value: Array<ShapeConfiguration_Shape>)Swift declarationvar shapes: Set<ShapeConfiguration.Shape>The supported shape types. Default is all shapes. Set to an empty set to disable all shapes.
contains(feature: FeatureSet_Feature): booleanSwift declarationfunc contains(_ feature: FeatureSet.Feature) -> BoolReturns a Boolean value that indicates whether the given feature exists in the set. - Parameter feature: A feature to look for in the set. - Returns: `true` if member exists in the set; otherwise, `false`.
get features(): Array<FeatureSet_Feature>Swift declarationvar features: Set<FeatureSet.Feature>The supported features. Default is all features.
set features(value: Array<FeatureSet_Feature>)Swift declarationvar features: Set<FeatureSet.Feature>The supported features. Default is all features.
isSubset(other: FeatureSet): booleanSwift declarationfunc isSubset(of other: FeatureSet) -> BoolReturns a Boolean value that indicates whether this feature set is a subset of the given feature set. - Parameter other: Another feature set. - Returns: `true` if the feature set is a subset of `other`; otherwise, `false`.
static get version1(): FeatureSetSwift declarationstatic var version1: FeatureSet { get }A new feature set supporting all features in version 1. To automatically get the latest features that PaperKit adds in new releases use `.latest`, to avoid new releases adding unexpected functionality to your app use a specific version like `.version1`.
No declarations were skipped in this snapshot.