---
title: "addKeyword(_:)"
framework: Photos
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "photos/phassetchangerequest/addkeyword(_:)"
---

# addKeyword(_:)

Add or remove a keyword associated with this asset Adding a keyword that is already associated (or removing a keyword that is not) will be silently ignored

## Declaration

```swift
func addKeyword(_ keyword: String)
```

## See Also

### Modifying Assets

- [init(for:)](photos/phassetchangerequest/init(for:).md)
- [creationDate](photos/phassetchangerequest/creationdate.md)
- [location](photos/phassetchangerequest/location.md)
- [isFavorite](photos/phassetchangerequest/isfavorite.md)
- [isHidden](photos/phassetchangerequest/ishidden.md)
- [caption](photos/phassetchangerequest/caption.md)
- [removeKeyword(_:)](photos/phassetchangerequest/removekeyword(_:).md)
- [rating](photos/phassetchangerequest/rating.md)
- [setLivePhotoVideoPlaybackEnabled(_:)](photos/phassetchangerequest/setlivephotovideoplaybackenabled(_:).md)
