iOS PageController with tabs - ios

I'm trying to implement something similar to Instagram's Search view that (I'm guessing) uses a Page Controller with tabs and a small scroll bar to track the position.
The tabs seem straight forward enough but what's the best way to implement the scroll bar? Is there anything built in or do I need to figure out how to track the position of the page controller and draw the line manually?

Related

How do I create custom transition animations similar to Snapchat in Swift on iOS

We're creating an application with a design concept similar to Snapchat. On the base level, we have three Views that are supposed to be horizontally swipeable, with the camera view being in the middle.
The Views are also supposed to be selectable via a Tab Bar. While the views are being swiped, the transition should also manipulate the color of the Tab Bar aswell as the size of some elements on the Tab Bar, similar to how Snapchat does it:
Our UI Designer made a mockup for our specific application in Adobe XD:
The button has been made independent from the Tab Bar, as it is supposed to do some interaction with the controller beneath, even if the Tab Bar disappears.
I've been trying to figure out how to best implement a navigation like this for about 10 hours now. I've come as far as trying to create my own AnimationController for animating between Tabs coupled with a custom InteractionController, but those have been unsafe and buggy at best, and I still haven't figured out how to animate the button at the same time as the views.
Has anyone tried to implement a design similar to this and succeeded? Could you lead me in the right direction of which methodology to use to achieve a design like this?
Thanks in advance everyone.

UISearchController Scope Bar (Instagram's way)

I am currently recreating an Instagram app. (For learning purposes.)
But I am stuck recreating the search bar in the Search page.
Instagram's Search Bar
So far my implementation of UISearchController displays a segment controller with buttons. But is not close to Instagrams. Or any other animation similar to it that will lead me on the right direction will be greatly appreciated it.
This works for copying that kind of tab view controller. Here is a picture of it.
Check out this Github page. They have created a segmented controller just like instagram's, and if you scroll down you can see images of it.

Achieve effect of navigating without changing the current view

I have a UIWebView that imports a single page web app (ex. AngularJS app). When I navigate inside the webview, I want to make the user feel as if he's navigating inside a native app. To do this, I need to be able to programmatically change the navigation bar (title and the back button) and imitate page transition inside the app. The page transition can be done by using ionic, which uses hardware acceleration along with velocity.js but I am not sure if animating the fade in and sliding effect of navigation title would be easy enough.
Is there a way to programatically animate the navigation bar, as if you're moving away to a different view?

iOS - Search View Controller glitch

I can only assume the effect above is happening because Search Display Controllers are normally designed to work with just a navigation bar above them. As you can see, in this design there is a toolbar containing a segmented control underneath the navigation bar.
This is creating quite a mess as can be seen in screenshot two. Is there any way to just disable the Search Display Controller position animating effect or offset it differently in any way?
The end goal was simply to have 3 different lists in 3 different views and have each one filterable. Any ideas how to get around this view glitch?

iOS load view from specific position

Hei guys.
What I am trying to achieve is have my search bar behind the navigation controller just like in the sparrow app. So when you scroll down the search bar is basically part of the view.
The first picture is the view when it's first loaded. The second one is after I scrolled down.
Do you know any way I can achieve this? I was thinking of having the search bar as part of the view and just load the view form the point that's just under the search bar. But I don't know how to do that. Any help would be much appreciated. Thanks.
I agree with #holex's comment if you're using a tableview. Seems silly to re-implement.
However, in the unlikely event you're not. You could just use a UIScrollView for your content and place the search bar at the top, and adjust the content offset accordingly. So it would appear as if the search bar has animated from under your navigation bar.
Here's a link to the UIScrolView class page on the dev site

Resources