SwiftUI
How to create Tab Bar using TabView in SwiftUI
In UIKit, we use the UITabBarController to create the tab bar. While in SwiftUI we could use TabView instead. To create a user interface with tabs, we place views in a TabView and apply the tabItem(_:) modifier to the contents of each tab. Here is an example, struct ProjectView: View