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

Комментарии • 21

  • @BlueScreen64
    @BlueScreen64 Год назад +8

    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.

  • @knightandlord
    @knightandlord 2 месяца назад

    Thank you for sharing this

  • @saurabh9446
    @saurabh9446 Год назад +3

    Noice 🔥 can this be a series?

  • @Tyb641
    @Tyb641 Год назад +2

    Thanks for sharing awesome content very helpful ❣️

  • @toastrecon
    @toastrecon Год назад +4

    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.

    • @ruocaled
      @ruocaled Год назад +1

      wonder if you ever find a solution!

    • @jacoblavenant717
      @jacoblavenant717 Год назад

      @@ruocaled same lol

    • @jacoblavenant717
      @jacoblavenant717 Год назад +1

      @@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.

  • @victorriurean
    @victorriurean Год назад +2

    nice!

  • @VictorPedrazainteractiondesign
    @VictorPedrazainteractiondesign 6 месяцев назад

    How does it behave on iPad tho? Couldn't find on the iOS guidelines

  • @pillaideepakb
    @pillaideepakb Год назад +1

    Thank for sharing :)

  • @MauricioFelipePachecoDiaz
    @MauricioFelipePachecoDiaz 2 месяца назад

    Thanks, but presentationDetents in SwiftUI is on iOS16 not to iOS14

  • @pankajpurohit2331
    @pankajpurohit2331 Год назад

    Is fixed height for presentation detents also works for Landscape mode? I am facing issue to set height of sheet in Landscape mode.

  • @victorriurean
    @victorriurean Год назад +2

    cool cool cool cool cool

  • @adityavaghela7085
    @adityavaghela7085 10 месяцев назад

    Great tutorial! , but how can we disable swipe up and down feature?

  • @joetymoszczuk1501
    @joetymoszczuk1501 Год назад

    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?

  • @victorriurean
    @victorriurean Год назад

    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”.

    • @victorriurean
      @victorriurean Год назад

      or something like "Things you can't do in SwiftUI yet, but you can in UIKit"

    • @jenny2814.
      @jenny2814. Год назад

      @@victorriurean bro nobody uses uikit anymore