I am launching a new iOS project in Swift and my experience in programming iOS-based applications is minimal, so please bear with me if I use some strange terminology or miss some simple solutions.
I want to replicate a template in an Instagram application, as shown here:
Selected tab
Go to scroll
For those who don’t use Instagram, what happens here is something like a UIPageViewController (with scroll options), but with tabs at the top indicating the selected page.
As in Instagram, I plan to have this functionality inside a child UIViewController UITabBarController (you can see the "main" tabs below).
What I started doing was creating static tabs and adding left and right gesture recognizers to the child UIViewController, which will change the page and refresh the indicator of the selected page on the tabs.
It works, but I do not really like its appearance and the way it is written. I do not like the idea of using two instances of tabs, and it seems that this is not the way Instagram does, because, as shown in the second image, the indicator slides between the tabs.
, Instagram . , iOS ( Android Xamarin iOS), , .
, !