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
- Host: GitHub
- URL: https://github.com/timoliver/tosegmentedsplitviewcontroller
- Owner: TimOliver
- License: mit
- Created: 2018-12-28T15:25:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-30T14:13:39.000Z (over 7 years ago)
- Last Synced: 2025-04-11T20:12:55.460Z (about 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 220 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.*

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! :)