SwiftUI Bottom Sheet - Resizable

  Рет қаралды 18,253

Sean Allen

Sean Allen

Күн бұрын

Пікірлер: 51
@seanallen
@seanallen 2 жыл бұрын
My iOS Developer Courses - seanallen.teachable.com
@SanusiAdewale
@SanusiAdewale Ай бұрын
coming to this for like the 5th time this year. Your content is soo good!
@MrMm2004
@MrMm2004 2 жыл бұрын
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 Жыл бұрын
Happy to help, Marcus!
@chadgoodyear7905
@chadgoodyear7905 2 жыл бұрын
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.
@ColeDano
@ColeDano 2 жыл бұрын
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 жыл бұрын
Glad you enjoyed them, Cole!
@EmmaKAlexandra
@EmmaKAlexandra 2 жыл бұрын
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 жыл бұрын
On the bright side... deleting old code is one of the best feelings in the world :)
@EmmaKAlexandra
@EmmaKAlexandra 2 жыл бұрын
@@seanallen I love a red diff
@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!
@TheChickenDuy
@TheChickenDuy 2 жыл бұрын
Can't make the dimmable background interactable and can't make it resize to content inside :(
@af2b
@af2b Жыл бұрын
Amazing!
@seanallen
@seanallen Жыл бұрын
Thank you! Cheers!
@ChristopherCricketWallace
@ChristopherCricketWallace 2 жыл бұрын
well done, sir
@seanallen
@seanallen 2 жыл бұрын
Thanks Chris!
@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.
@piyushsharma1638
@piyushsharma1638 2 жыл бұрын
We cant interact the underneath map using these sheets, half modal purpose is to have interactive views simultaneously, any solution for that?
@rasheshbosamiya1482
@rasheshbosamiya1482 10 ай бұрын
I have a TabView and want to present Bottom Sheet above the TabView, how can I achieve?
@perrygupta
@perrygupta Жыл бұрын
ios 16 only, thats a bummer
@mkhasson97
@mkhasson97 2 жыл бұрын
Nice tutorial 👏🏻👏🏻👏🏻
@seanallen
@seanallen 2 жыл бұрын
Thank you 😊
@vanylaskywalker
@vanylaskywalker 11 ай бұрын
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 ?
@Stricken174
@Stricken174 10 ай бұрын
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?
@adamhelman3311
@adamhelman3311 2 жыл бұрын
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
@kironet
@kironet 2 жыл бұрын
I wish they'd port it to iso15... Does anyone know a good package? :D
@juancarlosrangel2128
@juancarlosrangel2128 Жыл бұрын
Hello, I have a question. How Can I detect when de .sheet is dragged? And get his size height? Thank you
@michaelheitz1808
@michaelheitz1808 Жыл бұрын
did you figure this out?
@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.
@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 жыл бұрын
Amazing tutorial btw
@seanallen
@seanallen 2 жыл бұрын
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 жыл бұрын
@@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.
@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
Request App Ratings & Review - SwiftUI | iOS 16 | Xcode 14
2:06
SwiftUI Grids - LazyVGrid, LazyHGrid, Static Grid
17:55
Sean Allen
Рет қаралды 14 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 47 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 57 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 30 МЛН
Play: The Secret Weapon for iOS Devs & Designers
10:12
Sean Allen
Рет қаралды 36 М.
BottomSheets and PresentationDetents in SwiftUI
24:59
Stewart Lynch
Рет қаралды 5 М.
How to Create a Custom Tab Bar in SwiftUI - Step by Step for Beginners (2023)
16:28
A Swiftly Tilting Planet
Рет қаралды 15 М.
SwiftUI Bottom Sheets (iOS) - Xcode 14 - 2022
8:09
iOS Academy
Рет қаралды 27 М.
FIRST LOOK: Jaguar Type 00 - Let The Chaos Begin!
6:35
Top Gear
Рет қаралды 319 М.
31 Xcode Tips & Tricks - 2023
17:45
Sean Allen
Рет қаралды 42 М.