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!
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.
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!
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.
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.
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)
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?
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?
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.
@@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.
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.
My iOS Developer Courses - seanallen.teachable.com
coming to this for like the 5th time this year. Your content is soo good!
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!
Happy to help, Marcus!
Nice. I like the reverse video explanation order.
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.
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!
On the bright side... deleting old code is one of the best feelings in the world :)
@@seanallen I love a red diff
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!
Glad you enjoyed them, Cole!
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.
Thank you for this! Just what I was looking for!
Happy to help, Amar!
Amazing!
Thank you! Cheers!
Nice tutorial 👏🏻👏🏻👏🏻
Thank you 😊
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.
I have a TabView and want to present Bottom Sheet above the TabView, how can I achieve?
well done, sir
Thanks Chris!
We cant interact the underneath map using these sheets, half modal purpose is to have interactive views simultaneously, any solution for that?
Can't make the dimmable background interactable and can't make it resize to content inside :(
ios 16 only, thats a bummer
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)
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?
How do you align the content of the sheet to the top instead of centered.
is there any option to adjust the height of bottom sheet if my app support iOS 15 ?
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?
Yup, that is another way of doing it.
so sad that this only available on iOS16 and newer
Hello, I have a question. How Can I detect when de .sheet is dragged? And get his size height?
Thank you
did you figure this out?
I wish they'd port it to iso15... Does anyone know a good package? :D
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?
Amazing tutorial btw
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.
@@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.
how to make the contents of sheet react to the change of fraction?
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.
Show what works in ios 14
You need to build your own custom view pre-iOS 16
@@seanallen Okay. Is there a tutorial from you on how to build such custom UI?
code pls