An open API service indexing awesome lists of open source software.

https://github.com/timoliver/tosegmentedsplitviewcontroller

A split view controller that is controlled by a segmented control on small devices
https://github.com/timoliver/tosegmentedsplitviewcontroller

Last synced: 8 months ago
JSON representation

A split view controller that is controlled by a segmented control on small devices

Awesome Lists containing this project

README

          

# TOSegmentedSplitViewController

*I'm shelving this project for the time being, but feel free to play with the same app and let me if you think it has potential.*

![TOSegmentedSplitViewController](screenshot.jpg)

This library is a view controller subclass designed for apps that are controlled primarily by a `UITabBarController`. The idea is that 2 view controllers that shouldn't necessarily have their own separate tabs are merged into a sort of 'sub-tab' where they can then easily be accessed by a segmented control running along the top. It's also possible to swipe between the two with a built in scroll view.

On iPad devices, the view controllers are displayed concurrently, next to each other.

I decided to stop developing this because I hit some design issues I wasn't exactly happy with.

* Suppressing the title in favor of the segmented control in the navigation bar felt like bad UX.
* It ended up being really hacky having to force `UINavigationController` to hide the titles.
* Swiping between the controllers felt cool, but getting the segmented control to behave nicely with content passing under it was tricky.

In the end, I think I was over-complicating this. In most cases, separate tabs would probably just make more logical sense.

In any case, I'm leaving it here in case anyone wants to play with it. Enjoy! :)