This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/ios/knowledge-base/how-do-i-programmatically-add-annotation-to-the-saved-annotations-list.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Add annotations to saved list in iOS

To programmatically add annotations to the saved annotation list, you need to create a new AnnotationSet and append it to the annotation sets stored in SavedAnnotationsViewController.sharedAnnotationStore, like so:

// New annotations to save.
let annotations = /* ... */
// Get the default annotation set store.
let store = SavedAnnotationsViewController.sharedAnnotationStore
// Modify the stored annotation sets.
try store.modifyAnnotationSets { annotationSets in
annotationSets.append(AnnotationSet(annotations: annotations, copyAnnotations: true))
}