|
I'm working on something similar to the "Subscribed" notice that appears within the Podcast app.
and I'm presenting my notice from UIKit here
I found a pretty simple UIKit way of doing this, but it'd be nice to do this completely from SwiftUI
|
|
How about something like this? |
|
Nice that is perfect. Would you have any suggestions on how to remove this from its parent view when the animation finishes? |
|
Here a slightly difference way Add these two structs to a file
Then in the view that you want the notice to appear add this
Both remove the view after 2 seconds with |
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 more!
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.