---
title: "setIconType(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfannotationtext/seticontype(_:)"
---

# setIconType(_:)

Sets the icon type for the annotation.

## Declaration

```swift
func setIconType(_ type: PDFTextAnnotationIconType)
```

## Parameters

- `type`: The icon type for the annotation.

## See Also

### Related Documentation

- [PDFTextAnnotationIconType](pdfkit/pdftextannotationicontype.md)

### Managing the Annotation Icon’s Type

- [iconType()](pdfkit/pdfannotationtext/icontype().md)
