SwiftUI Bottom Sheet - Resizable

Поделиться
HTML-код
  • Опубликовано: 1 ноя 2024

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

  • @seanallen
    @seanallen  2 года назад

    My iOS Developer Courses - seanallen.teachable.com

  • @SanusiAdewale
    @SanusiAdewale 19 дней назад

    coming to this for like the 5th time this year. Your content is soo good!

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

    Hi Sean, another great tutorial! I have searched everywhere for this exact tutorial and couldn't find it anywhere and you explain it literally in one minute! Perfect, thanks!

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

      Happy to help, Marcus!

  • @chadgoodyear7905
    @chadgoodyear7905 2 года назад +1

    Nice. I like the reverse video explanation order.

    • @seanallen
      @seanallen  2 года назад

      Thanks! I thought a lot about that actually... I wanted those who are familiar with SwiftUI to get the information ASAP, but also didn't want to neglect those still just learning.

  • @EmmaKAlexandra
    @EmmaKAlexandra 2 года назад +3

    As usual with SwiftUI, I spent a few days building something like this for my app last year. Now, Apple built it in & obsoleted my custom code. Thank goodness!

    • @seanallen
      @seanallen  2 года назад +5

      On the bright side... deleting old code is one of the best feelings in the world :)

    • @EmmaKAlexandra
      @EmmaKAlexandra 2 года назад +2

      @@seanallen I love a red diff

  • @ColeDano
    @ColeDano 2 года назад +1

    Good stuff Sean. I'm really liking the iOS 16 updates. Using this right now in my first Indy app. Loved your courses BTW, they really helped a lot!

    • @seanallen
      @seanallen  2 года назад +1

      Glad you enjoyed them, Cole!

  • @martinmajewski
    @martinmajewski 2 года назад

    Good tutorial, thanks.
    One note: SF Symbols are flattened (pixelated) when applying the resizable modifier. You should thread your SFSymbols image like a text and change its size with .font(...). This way, it aligns with, e.g., neighboring text and stays dynamic to all the fancy UI effects, like Dark Mode.

  • @midnight161
    @midnight161 2 года назад

    Thank you for this! Just what I was looking for!

    • @seanallen
      @seanallen  2 года назад

      Happy to help, Amar!

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

    Amazing!

  • @mkhasson97
    @mkhasson97 2 года назад +1

    Nice tutorial 👏🏻👏🏻👏🏻

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

    Thanks Sean, nice quick tutorial. I was wondering if you knew of a way to size the sheet based on the size of the context using GeometryReader. I’ve been playing around with it but can’t get it to work. Ideally I’d like my sheet to be just big enough to fit the content.

  • @rasheshbosamiya1482
    @rasheshbosamiya1482 9 месяцев назад

    I have a TabView and want to present Bottom Sheet above the TabView, how can I achieve?

  • @ChristopherCricketWallace
    @ChristopherCricketWallace 2 года назад +1

    well done, sir

  • @piyushsharma1638
    @piyushsharma1638 2 года назад +1

    We cant interact the underneath map using these sheets, half modal purpose is to have interactive views simultaneously, any solution for that?

  • @TheChickenDuy
    @TheChickenDuy 2 года назад +2

    Can't make the dimmable background interactable and can't make it resize to content inside :(

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

    ios 16 only, thats a bummer

  • @Stricken174
    @Stricken174 8 месяцев назад

    Unfortunately, Apple doesn't give us the ability to customize the sheet itself. For example, corner radius or background color. Correct me if I'm dumb)

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

    Love the video but now I am stuck with my own mini project. I hope somebody sees this comment, here goes...
    I have an array of values that I want to display on a sheet like this video but each time I click on let's say an image, it only shows the first set of values. Am I missing something?

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

    How do you align the content of the sheet to the top instead of centered.

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

    is there any option to adjust the height of bottom sheet if my app support iOS 15 ?

  • @adamhelman3311
    @adamhelman3311 2 года назад +1

    About the button- would it have worked just as well if the button style struct that conformed to ButtonStyle was instead conformed to View and then have had the button’s label been an instance of that view?

    • @seanallen
      @seanallen  2 года назад

      Yup, that is another way of doing it.

  • @EmanNollase
    @EmanNollase 2 года назад

    so sad that this only available on iOS16 and newer

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

    Hello, I have a question. How Can I detect when de .sheet is dragged? And get his size height?
    Thank you

  • @kironet
    @kironet 2 года назад

    I wish they'd port it to iso15... Does anyone know a good package? :D

  • @benjimandel4836
    @benjimandel4836 2 года назад

    Is it possible to see/read the fraction value in the view code of the sheet? i.e., to show less or more content based on the size?

    • @benjimandel4836
      @benjimandel4836 2 года назад +1

      Amazing tutorial btw

    • @seanallen
      @seanallen  2 года назад +1

      Not that I'm aware of. But this is a brand new modifier in iOS 16. I would need to dig deeper to see if this was possible. An app like Maps has the entire view in the sheet, but you can only see the top half of it when in the .medium size. When you swipe up to .large, you see the entire view. But it's not dynamically changing... it's always there. You just can't see it in .medium.

    • @benjimandel4836
      @benjimandel4836 2 года назад +1

      @@seanallen Got it. Thanks.
      I thought it would allow for some cool animation, like buttons with icons expanding and adding text. Guess will have to wait to future updates. Maybe it will be added.

  • @zehaolee7201
    @zehaolee7201 2 года назад

    how to make the contents of sheet react to the change of fraction?

    • @seanallen
      @seanallen  2 года назад

      I don't know. I would need to research that. An app like Maps has the entire view in the sheet, but you can only see the top half of it when in the .medium size. When you swipe up to .large, you see the entire view. But it's not dynamically changing... it's always there. You just can't see it in .medium.

  • @colephelps7321
    @colephelps7321 2 года назад

    Show what works in ios 14

    • @seanallen
      @seanallen  2 года назад

      You need to build your own custom view pre-iOS 16

    • @colephelps7321
      @colephelps7321 2 года назад

      @@seanallen Okay. Is there a tutorial from you on how to build such custom UI?

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

    code pls