Skip to content

Example of how creating your custom TabBar in SwiftUI with the exatcly behavior as TabView/UITabBarController

Notifications You must be signed in to change notification settings

gustavochx/CustomTabBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

CustomTabBar

  • Example of how create a custom TabBar in SwiftUI and avoiding navigation bugs (as me 😅)
  • Built with Xcode 13.2

Swift Xcode

Requirements

  • Xcode 13.2 Beta
  • iOS 15.2

Getting Started

  • Simple example composed by:
    • TabBarView.swift - TabBar component
    • TabBarIcon.swift - TabBarIcon component corresponding to tab from TabBarView
    • ViewRouter.swift - Router used to shared state between the TabBarIcons and TabBarView
    • ContentView.swift - View holding the ViewRouter instance and change between screens based on tab selections.

About

Example of how creating your custom TabBar in SwiftUI with the exatcly behavior as TabView/UITabBarController

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages