UIFindInteraction Bug
For FB10170943
Steps to Reproduce
- Build and run the app
- Select any item from the list
- Tap on the search icon in the navigation bar to initiate the search session
- Search for any string that appears in the on-screen content, eg.
quis
- Tap on
Done
or the search icon in the navigation bar to end the search session. - Tapping again on search will present the search bar with the previous query pre-filled.
- Dismiss this view, and repeat step 2 and 3. The previous query will be pre-filled in the search bar.
Expected
Once a UIFindInteraction
has been deallocated, it should no longer persist the search query or options.
Each UIFindInteraction
should maintain its own internal state and not have a shared state throughout the app. This should either be an opt-in or inversely, provide an option to opt-out of this behaviour if its determined to be essential.