Marcelo P.
Marcelo P.

Reputation: 73

How to implement this tabbar in iOS using Swift

Please check the attached images. When the user touches the profile tab on the first image, then the tabbar should be like the second tab. I already searched through Github and Stackoverflow, but I can't find how to implement this tabbar.

enter image description here enter image description here

Upvotes: 0

Views: 70

Answers (1)

DonMag
DonMag

Reputation: 77638

You will want to look at UITabBarController and .setViewControllers.

The idea would be that when "Profile" is tapped, your custom TabBarController would use .setViewControllers to change the new "set" of controllers that you want displayed. Tapping the "Back" button would do the reverse.

Upvotes: 1

Related Questions