---
title: "Preset annotation colors on iOS | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/ios/annotations/customizing-presets/"
md_url: "https://www.nutrient.io/guides/ios/annotations/customizing-presets.md"
last_updated: "2026-05-23T00:08:18.099Z"
description: "In some cases, you might want to customize the default set of color presets shown in the annotation style inspector (AnnotationStyleViewController)."
---

# Customizing color presets on iOS

In some cases, you might want to customize the default set of color presets shown in the annotation style inspector ([`AnnotationStyleViewController`](https://www.nutrient.io/api/ios/documentation/pspdfkitui/annotationstyleviewcontroller)).

The color presets are managed by the global [`AnnotationStyleManager`](https://www.nutrient.io/api/ios/documentation/pspdfkit/annotationstylemanager) object (found under `SDK.shared.styleManager`).

The easiest way to customize the default presets while leaving other annotation style-related functionality intact is to set the new presets using [`AnnotationStyleManager`](https://www.nutrient.io/api/ios/documentation/pspdfkit/annotationstylemanager).

Here is an example implementation that customizes the default colors for line annotations. All we have to do is set our own array of [`ColorPreset`](https://www.nutrient.io/api/ios/documentation/pspdfkit/colorpreset) objects:

### SWIFT

```swift

let presets = [
    ColorPreset(color: UIColor.black),
    ColorPreset(color: UIColor.red),
    ColorPreset(color: UIColor.green),
    ColorPreset(color: UIColor.blue)
]
let styleManager = SDK.shared.styleManager
let key = Annotation.ToolVariantID(tool:.line)
styleManager.setPresets(presets, forKey: key, type:.colorPreset)

```

### OBJECTIVE-C

```objc

NSArray<PSPDFColorPreset *> *presets = @[[PSPDFColorPreset presetWithColor:UIColor.blackColor],
                                         [PSPDFColorPreset presetWithColor:UIColor.redColor],
                                         [PSPDFColorPreset presetWithColor:UIColor.greenColor],
                                         [PSPDFColorPreset presetWithColor:UIColor.blueColor]];
PSPDFDefaultAnnotationStyleManager *styleManager = (PSPDFDefaultAnnotationStyleManager *)PSPDFKitGlobal.sharedInstance.styleManager;
PSPDFAnnotationStateVariantID key = PSPDFAnnotationStateVariantIDMake(PSPDFAnnotationStringLine, nil);
[styleManager setPresets:presets forKey:key type:PSPDFAnnotationStyleTypeColorPreset];

```

Take a look at [`PresetCustomizationExample.swift`](https://github.com/PSPDFKit/pspdfkit-ios-catalog/blob/master/Catalog/Examples/ViewCustomization/PresetCustomizationExample.swift) in the [Nutrient Catalog](https://www.nutrient.io/guides/ios/getting-started/example-projects.md#nutrient-catalog) for a complete example.
---

## Related pages

- [Configure annotation presets on iOS](/guides/ios/annotations/changing-default-values-for-color-and-text-size-of-annotations.md)
- [Customizing PDF annotation appearance streams](/guides/ios/annotations/appearance-streams.md)
- [Hiding annotations on iOS](/guides/ios/annotations/disable-rendered-annotation-types.md)
- [Creating a fixed-sized annotation on iOS](/guides/ios/annotations/fixed-size-annotations.md)
- [Customizing note icons on iOS](/guides/ios/annotations/customize-annotation-rendering.md)
- [Store custom data in iOS PDF annotations](/guides/ios/annotations/custom-data-in-annotations.md)

