In-note text search - Is this a standard UIKit component or custom view?

84 views Asked by At

Currently, I have a note taking app with global text search feature. It is using standard UISearchController and able to provide the following UI outcome.

enter image description here

However, I would also like to provide a in-note text search feature. It should look very similar to "Find in Note" feature in Apple Notes.

enter image description here

Such the UI, is also found in Safari web browser.

enter image description here

I am not sure, is such an UI (With "Done", "Text field", "? of ? label", "x button", "next button", "prev button"), is it is standard UIKit component, or just a custom view?

Thanks.

1

There are 1 answers

2
rob mayoff On

You're looking for UIFindInteraction, and the related class UIFindSession and protocol UITextSearching. These APIs were added in iOS 16 (released late 2022).

The second half of WWDC 2022: Adopt desktop-class editing interactions explains how to use these APIs.