Deep Dive into TabView Changes in iOS18

  Рет қаралды 4,305

Stewart Lynch

Stewart Lynch

Күн бұрын

Пікірлер: 31
@oglerma
@oglerma 4 ай бұрын
Extremely helpful video !
@StewartLynch
@StewartLynch 4 ай бұрын
Thank you
@Mahadev-x7u
@Mahadev-x7u 4 ай бұрын
Next excellent lesson… special thanks for example in real project 🔥💯❤️
@chrismcnabb797
@chrismcnabb797 4 ай бұрын
Thank you! I was searching for this exact tutorial! 🎉
@areaswiftyone
@areaswiftyone 4 ай бұрын
Awesome video, thank you Stewart!
@santhoshVnair
@santhoshVnair 5 ай бұрын
This is an excellent and insightful video with comprehensive coverage on the possibilities of Tabview coming to iOS 18. It looks like lines are blurring between NavigationStack and TabView. Thanks Steve, exceptional as usual.
@StewartLynch
@StewartLynch 5 ай бұрын
Glad you enjoyed it!
@ix901x
@ix901x 2 ай бұрын
Awesome video vert helpful, BTW is a way to reorder the sidebar itself ?
@KristenSwanson
@KristenSwanson 3 ай бұрын
Super helpful, thank you! Do you have a recommendation about using a Navigation Stack with a TabView on iPad now? (Now that the tab bar is only at the top on iPad, the “back” being at the top when you’re within a stack of a tab seems confusing.)
@andremethot2787
@andremethot2787 5 ай бұрын
Great video. I’ve learned a lot
@StewartLynch
@StewartLynch 5 ай бұрын
Glad you enjoyed it!
@MarkMcBride-q4r
@MarkMcBride-q4r 4 ай бұрын
Great video. You're timing was just right for me. One follow-up question. Is there an approach whereby you can create the tabs dynamically using Swift data and still make the sidebar customizable?
@StewartLynch
@StewartLynch 4 ай бұрын
You cannot dynamically add new views for the tabs
@MarkMcBride-q4r
@MarkMcBride-q4r 4 ай бұрын
@@StewartLynch Thanks. You really do a great job in these videos.
@RossBritten
@RossBritten 2 ай бұрын
I can’t work out how to change the color of the new tab bar?! .toolbarBackground is deprecated
@KiriKiriKiki
@KiriKiriKiki 4 ай бұрын
thanks
@gerardgomez5987
@gerardgomez5987 5 ай бұрын
Let me just start by saying your videos are amazing. The attention to detail is phenomenal. I learned so much. In regard to the TabView, if there's currently a way to hide TabSection headers in the TabBar view while keeping them visible in the Sidebar view, and more importantly, while still showing the tabs themselves in the TabBar. To be more clear I have a section and within those sections I have tabs. In sidebar view I can see the section and its Tabs, in the TabView I can only see the section or the first tab. Now is there a way to hide the section in the TabView and only shows its tabs?
@StewartLynch
@StewartLynch 5 ай бұрын
You can hide a section from the Tab View, using .tabPlacement(.sidebarOnly) However, you cannot show the individual tabs by default. However, in the sidebar, when the user taps on one of the tabs in the section, it will appear on the tab bar after that. What you could do is set the tabPlacement for each of the items in the section as .pinned, but this will pin them to the end of the tab bar and only show the icon.
@dirkfu6280
@dirkfu6280 4 ай бұрын
Enabling „Requires fullscreen“, to fix the crash prevents using your app in multitasking though!
@Scionwest
@Scionwest 4 ай бұрын
Are there alternative solutions other than “requires full screen”?
@manmandangdang
@manmandangdang 4 ай бұрын
Thank you very much! If I want to make TabSection closed by default, how can I achieve it?
@StewartLynch
@StewartLynch 4 ай бұрын
I have not found a way to do that. You can remove the sidebar altogether by using .tabViewStyle(.tabBarOnly) , but you do not get the option to bring it back
@Tachoisdabest
@Tachoisdabest 4 ай бұрын
Thank you for the video Stewart!! One question: how do you do a custom header at the top of each file? Do you do this manually or otherwise?
@StewartLynch
@StewartLynch 4 ай бұрын
I cover this in this video: kzbin.info/www/bejne/iHKmlqOEeayBr80
@Tachoisdabest
@Tachoisdabest 4 ай бұрын
@@StewartLynch thank you! 🤙🏾
@Soh965
@Soh965 4 ай бұрын
Bruh… transferable is incredible…
@StewartLynch
@StewartLynch 4 ай бұрын
Yup, pretty amazing, isn't it
@danstutorials3904
@danstutorials3904 2 ай бұрын
NOT WORKING: TabView(selection: $currentTab) { if #available(iOS 18.0, *) { Tab("Installed fonts", systemImage: "signature") { Text("Hello") } } else { // Fallback on earlier versions } } It says that "'buildExpression' is unavailable: this expression does not conform to 'View'"
@StewartLynch
@StewartLynch 2 ай бұрын
You are mixing two different initializers so this won’t work. Bring the if #available outside the TabView. In iOS 18 the selection is set by a value not a tag. @State private var currentTab = 0 var body: some View { if #available(iOS 18.0, *) { TabView(selection: $currentTab) { Tab("Installed fonts", systemImage: "signature", value: 0) { Text("Hello") } } } else { TabView(selection: $currentTab) { Text("Hello") .tabItem { Label("Installed fonts", systemImage: "signature") } .tag(0) } } }
@danstutorials3904
@danstutorials3904 2 ай бұрын
@@StewartLynch Aah, Ok thanks so much Stewart! All working! I had no idea Swift was this picky about that type of expression go where! Have a great day!
Color Mixing in iOS 18
28:36
Stewart Lynch
Рет қаралды 1,1 М.
Getting the MOST out of Xcode 16
24:52
Stewart Lynch
Рет қаралды 7 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Introducing My Frontend Development Agency! 🚀
10:11
Xcode templates, projects, targets, schemes and workspaces
24:42
Stewart Lynch
Рет қаралды 6 М.
iOS 18 SwiftUI ScrollView DeepDive
28:11
Stewart Lynch
Рет қаралды 3,8 М.
SwiftUI Beginner Tutorial | Learn The Basics
41:12
Blossom Build
Рет қаралды 446
NEVER install these programs on your PC... EVER!!!
19:26
JayzTwoCents
Рет қаралды 4,9 МЛН
9. SwiftData Storing Images and Bug Fixes
23:15
Stewart Lynch
Рет қаралды 5 М.
SwiftUI - Reorder a List (2 Ways)
13:33
Sean Allen
Рет қаралды 9 М.
Interactive SwiftUI Chart - Drag to Show Data w/ Animation
17:57
Sean Allen
Рет қаралды 4,7 М.
The BEST Mechanical Display You've EVER Seen!!
13:51
Tin Foil Hat
Рет қаралды 625 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН