LAST CHANCE: Save 50% on all my Swift books and bundles! >>

SOLVED: Day 97 bug

Forums > 100 Days of SwiftUI

Curious if anyone else is seeing this. It seems to only do this when I search for Snowbird, and it only does it the first few times...

If I search for Sn up comes Snowbird, I click on details and it shows the Snowbird details for about 1 second then backs up to the search results and shows only St Anton.

If I then search for something else they work fine, and when I search for Snowbird again it works fine.

I noticed also when it does it, and when it backs up, the Search bar no longer shows the Sn that I typed but shows An


This sounds like a case of iPhone's spell checker correcting your spelling from "Sn" to "An" as soon as your focus leaves the text field.

Try this


Yes that was exactly it:

          .searchable(text: $searchText, prompt: "Search for a resort")

That fixed it....Odd that it only did the auto correct AFTER I clicked the search result to go to the detail screen. Also odd that it only did it once...once I searched for something else it would be it only autocorrects onces per rendered screen.


Hacking with Swift is sponsored by Essential Developer.

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until July 28th.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.