How to Create a Custom Tab Bar in SwiftUI - Step by Step for Beginners (2023)

  Рет қаралды 14,879

A Swiftly Tilting Planet

A Swiftly Tilting Planet

Күн бұрын

Пікірлер: 31
@silicon_mind
@silicon_mind Жыл бұрын
Great tutorial, thank you! If anybody stumbles on the same issue, in my case to make the capsule animation between tabs work, I had to wrap the button action in a withAnimation block: Button { withAnimation { tabSelection = index + 1 } }
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Nice! Thank you for sharing.
@SentimentalMo
@SentimentalMo Жыл бұрын
Subscribed. Will watch this in a few hours in the morning.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you. Hope it is helpful.
@yugeras
@yugeras Жыл бұрын
Thanks a lot! Nice video and I liked the way you explain without any haste. Most videos from others are as if they are always in a hurry :)
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you.
@gregh528
@gregh528 Жыл бұрын
Great tutorial thanks. Love you teaching style.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you.
@AromaVerma-c1t
@AromaVerma-c1t Жыл бұрын
Thanks a lot! Nice video and I liked the way you explain.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Thank you so much. Hopefully I can be informative and do some live streams during the week of WWDC23.
@chel.mckayla
@chel.mckayla Жыл бұрын
Great video!! Extremely helpful!! Although I was trying to add a different photo to each page, and I'm not quite sure how to do it. I have tried doing it using TabView but it gets rid of all the icons. Any suggestions on how I can fix that?
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Just make a new SwiftUI View and add it to the ContentView inside the TabView like this: TabContentViewOne() // Add a better View name here. .tag(1)
@NineVoltDigitalCinema
@NineVoltDigitalCinema Жыл бұрын
Audio is sounding better! Did you change up your mic placement, or doing some editing in post?
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Changed my mic position.
@AkimboFennec
@AkimboFennec Жыл бұрын
Custom tabs for sure.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
If you like custom tab views this takes a slightly different approach. kzbin.info/www/bejne/nXvcm6Ovd7x0e9E
@comgahanhphuc
@comgahanhphuc 4 ай бұрын
thanks for video 😍
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet 4 ай бұрын
You’re welcome.
@CS-gs2eo
@CS-gs2eo 5 ай бұрын
Nice tutorial! Thank you! I have a small question: what does .tag() mean and work in your code?
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet 4 ай бұрын
It’s a unique identifier for the tab view.
@BillBoneta-o5k
@BillBoneta-o5k 2 ай бұрын
​@@a_swiftly_tilting_planetgood
@gopalakrishnans6192
@gopalakrishnans6192 9 ай бұрын
Great video! , if we using custom tabview how we can persist the navigation state because if i switched the bottom tabs the navigation state gets reset
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet 9 ай бұрын
Good question, I'd have to look at the code again and think about it.
@emilrifahi
@emilrifahi Жыл бұрын
This is really great, using it for a project. However as overlay, I cant hide the customtabbar when I navigate into a nested View. Example: HomeView() contains a NavigationView and several different navigation Links In my MainView() I have a Tabview than includes HomeView and other views. When I select the Home tab in the tabbar, and then press a navigationLink, I enter a nested View with the overlay (Customtabbar) still still visible.
@emilrifahi
@emilrifahi Жыл бұрын
Would really appreciate feedback/ solutions on how I can hide the overlay of the tabview as well. Thanks!
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Sorry for the delay, but hopefully this live stream answers your question. Live Coding: Hide Custom TabView in SwiftUI kzbin.infobGSp2kRsawQ?feature=share
@vittyfiorentini238
@vittyfiorentini238 Жыл бұрын
Hi, updating xcode to 14.3 i receive the log "[PipelineLibrary] Mapping the pipeline data cache failed, errno22" when adding the MapView in the viewcontroller. I Receive this error only when i test on a real device not in the simulator. Can i fix it ? Is a common problem? Thanks for the time I appreciate so much.
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
I haven’t run into this problem, so I’m not sure how I would fix it. Probably check out the Apple Developer forms or stack overflow. See if it’s something others have run into.
@TrânBảo-x2k4q
@TrânBảo-x2k4q Жыл бұрын
Can I add 6 items on the tab bar??
@a_swiftly_tilting_planet
@a_swiftly_tilting_planet Жыл бұрын
Building out a custom tab bar would allow you to put as many that can fit on screen, or if you really wanted to you could make a scrolling tab bar.
Create a custom tab bar in SwiftUI | Advanced Learning #11
52:05
Swiftful Thinking
Рет қаралды 35 М.
Easy Custom Animated Tab Bar in SwiftUI Tutorial for iOS 15
13:20
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 3,9 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
Custom TabBar программно (Swift 5)
14:51
SwiftBook
Рет қаралды 10 М.
How to Create an Onboarding Screen in SwiftUI
20:36
A Swiftly Tilting Planet
Рет қаралды 1,2 М.
How to Build a Custom Tab Bar in SwiftUI
26:22
CodeWithChris
Рет қаралды 36 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 307 М.
SwiftUI TabView Tutorial
5:53
CodeWithChris
Рет қаралды 10 М.
How to Make a Card View in SwiftUI - Step by Step for Beginners (2023)
32:02
A Swiftly Tilting Planet
Рет қаралды 11 М.
Create a custom navigation bar and link in SwiftUI | Advanced Learning #12
47:26
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 58 МЛН