|
Hello all, I am having an issue with the To create a sacrament meeting program the user taps a button which brings up a This only seems to happen on the iPad and not the iPhone or iPod. Any help would be appreciated, I have been stuck on this for about a month now and I can't seem to find out why. The old internet doesn't seem to have an anwser or either I'm not searching for the right question (which could be possible). Here is the code on the sheet that has the searchable modifier.
|
|
Instead of code, perhaps you can provide a Keynote drawing of your architecture, or your intentions? As I recall from the scripture of St Paul of Swift, action sheets are designed for small blessings. [cit. needed] It seems you're trying to have a Perhaps in your design you have a Ritual object. That object might have one or more Prayers, Spells, Incantations, or Songs. Your Prayer or Spell object might have one or more Implements such as Incense, Wooden Stakes, Relics and the like. @twoStraws, our Level 100+ Mage, has several videos using NavigationViews to transmogrify views between one-to-many relationships. I tend to think this is the architecture you should be using to add hymns, hexes, songs, incantations, and liturgical accoutrements to your main sacrement object. It's natural world order to navigate between views. I am not sure navigating between sheets is a good thing. It feels other-worldly. This is why it might be helpful to see your Biblia Vulgata, your grand architecture. |
|
Hello all, I am not sure if what is was asking was very clear above. The problem I was having was that the So if you were filtering the list (which worked perfectly) once you tapped the cancel button to the right of the searchbar it would not only dismiss the searchbar but it would also dismiss the sheet as well. So I came up with a solution that works for me after some research and trail and error. Heres what I found out about the new So for me I have a rowView that displays all the list items on the main sheet. So to stop the sheet from dismissing when tapping the cancel button next the the search bar. I did the following:
These steps stopped the sheet from dismissing and cleared the search bar.
Heres my hide keyboard function
I hope this helps others who may be facing this issue as well. When I did a search on the internet there was nothing I could find that talked about this. |
|
I'm having an almost identicle issue. Can you elaborate on your fix? Where did you implemented the onTapGesture modifier? This bug is difficult. The same searchable list will both present this bug and function normally depending on which place in the app the view is called - I can't see any significant differences that are causing it! |
TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.