iOS Custom Tab Bar

AlexVPerl picture AlexVPerl · Jan 14, 2017 · Viewed 7.8k times · Source

I am looking to implement a custom Tab Bar in iOS where selected item is bigger size than the rest of the tabs and peeks out over the content similar to this screenshot. enter image description here

Could someone point to a tutorial of how to accomplish this preferably in Swift?

Answer

Rostyslav Druzhchenko picture Rostyslav Druzhchenko · Oct 19, 2017

I faced with this task several times. I found a lot of tutorials but I've never found one that gives the ability to create a center button that part of it is out of the tab bar.

At the end, I created an approach to have it done correctly. I implemented a simple example project with instructions how to do that. Please check my Custom Tabbar Center Button repo as an example.

One more benefit of it it's center button hides correctly with the tab bar when you use Hide Button Bar on Push property.

enter image description here