SwiftUI Bottom Sheets (iOS) - Xcode 14 - 2022
HTML-код
- Опубликовано: 9 сен 2024
- In this video we will learn how to add bottom sheets to your SwiftUI app - along with customization. Bottom sheets are a great way to present interactive content in a aesthetically pleasing UX. We will work with Xcode 14.1 and the latest version of SwiftUI.
💻 Source Code: / iosacademy
🎥 Subscribe for more: www.youtube.co...
😎 Like my teaching style? Check out some of my most popular courses! courses.iosaca...
👉🏼 Connect (personal LinkedIn) / afrazsiddiqui
🚀 Follow on LinkedIn / ios-academy
** Popular Series
Building Instagram: courses.iosaca...
Building TikTok: / @iosacademy
SwiftUI for Beginners: ios-academy.te...
** Get Skillshare free for 2 Months and learn iOS
www.skillshare...
** Manage all your investments from app earnings on Betterment!
bit.ly/3eBwlI9
** Grow your own RUclips tech channel with TubeBuddy:
www.tubebuddy....
#SwiftUI #Swift #Xcode
Great tutorial. The only question I have is how would I add the functionality of the detents on iOS versions before iOS 16 because it says detents are only available on iOS 16.
Thank you for sharing this
Noice 🔥 can this be a series?
Thanks for sharing awesome content very helpful ❣️
Your welcome
Dumb question: at 2:25, you can see the white background that shows behind the presented sheet and behind the app’s home view. Is there a way to hide that? Is that intentional so the user can see the iOS Home Screen or something? I was working on a project recently and was annoyed by it.
wonder if you ever find a solution!
@@ruocaled same lol
@@ruocaled I got it!! But when you are defining presentationDetent set it to presentationDetents: [.fraction(0.07), .fraction(0.50), .fraction(0.99)], When you use .large it cause the parent view to lose focus and cause that terrible look in the background. The .fraction(0.99) is just under .large, so you wont lose much space from .large.
I hope this will help any others looking to stop this behavior, because i couldn't find anything on stackOverflow nor chatGPT due to presentationDetent coming out during IOS 16.4.
nice!
How does it behave on iPad tho? Couldn't find on the iOS guidelines
Thank for sharing :)
Youre welcome
Thanks, but presentationDetents in SwiftUI is on iOS16 not to iOS14
Is fixed height for presentation detents also works for Landscape mode? I am facing issue to set height of sheet in Landscape mode.
cool cool cool cool cool
Great tutorial! , but how can we disable swipe up and down feature?
Why is it so much harder to create a side menu? is there an updated way to do a side menu since your last video?
Since we’re on the topic of SwiftUI, I got something for the suggestion box. I hope you don’t mind.
I haven’t seen this on any of the iOS channels, so maybe you would consider making a video on “things you can/can’t do in SwiftUI vs UIKit”.
or something like "Things you can't do in SwiftUI yet, but you can in UIKit"
@@victorriurean bro nobody uses uikit anymore