{"id":13907666,"url":"https://github.com/msaps/MSSTabbedPageViewController","last_synced_at":"2025-07-18T06:30:37.396Z","repository":{"id":56920814,"uuid":"49658318","full_name":"msaps/MSSTabbedPageViewController","owner":"msaps","description":"[DEPRECATED] A container UIViewController that provides a simple to implement page view controller with scrolling tab bar.","archived":true,"fork":false,"pushed_at":"2017-04-24T20:12:37.000Z","size":1831,"stargazers_count":162,"open_issues_count":12,"forks_count":37,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-07-07T23:27:08.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msaps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-14T16:08:34.000Z","updated_at":"2024-09-20T10:33:18.000Z","dependencies_parsed_at":"2022-08-20T21:50:24.803Z","dependency_job_id":null,"html_url":"https://github.com/msaps/MSSTabbedPageViewController","commit_stats":null,"previous_names":["merricksapsford/msstabbedpageviewcontroller"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/msaps/MSSTabbedPageViewController","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaps%2FMSSTabbedPageViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaps%2FMSSTabbedPageViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaps%2FMSSTabbedPageViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaps%2FMSSTabbedPageViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msaps","download_url":"https://codeload.github.com/msaps/MSSTabbedPageViewController/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msaps%2FMSSTabbedPageViewController/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265710530,"owners_count":23815373,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T23:02:04.834Z","updated_at":"2025-07-18T06:30:37.046Z","avatar_url":"https://github.com/msaps.png","language":"Objective-C","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"**MSSTabbedPageViewController is now deprecated, and a new Swift component is available in the form of [Tabman](https://github.com/MerrickSapsford/Tabman). Unfortunately this can't be made compatible with Objective-C.**\n\n**A seperate component, [Pageboy](https://github.com/MerrickSapsford/Pageboy) is available to provide the UIPageViewController enhancements present in MSSTabbedPageViewController and much more.**\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/MerrickSapsford/MSSTabbedPageViewController/blob/develop/Resource/Icon.png?raw=true\" alt=\"MSSTabbedPageViewController\" height=\"160\" width=\"160\"/\u003e\n\u003c/p\u003e\n\n# MSSTabbedPageViewController\n[![Status](https://img.shields.io/badge/status-deprecated-red.svg)]()\n[![Build Status](https://travis-ci.org/msaps/MSSTabbedPageViewController.svg?branch=develop)](https://travis-ci.org/msaps/MSSTabbedPageViewController)\n[![CocoaPods](https://img.shields.io/cocoapods/v/MSSTabbedPageViewController.svg)]()\n\nMSSTabbedPageViewController is a UIViewController that provides a simple to implement page view controller with scrolling tab bar. It also includes a UIPageViewController wrapper that provides improved data source and delegation methods.\n\n\u003cdiv style=\"width:100%;\"\u003e\n\u003cimg src=\"https://github.com/MerrickSapsford/MSSTabbedPageViewController/blob/develop/Resource/MSSTabbedPageViewController.gif\" align=\"center\" height=\"30%\" width=\"30%\" style=\"margin-left:20px;\"\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\u003cp\u003e\n\n## Example\nTo run the example project, clone the repo and build the project. Examples are available for both Objective-C and Swift projects.\n\n## Installation\nMSSTabbedPageViewController is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n    pod 'MSSTabbedPageViewController'\n\nAnd run `pod install`.\n\n## Usage\n\nTo use the tabbed page view controller, simply create a `UIViewController` that is a subclass of `MSSTabbedPageViewController`. Then implement the following data source method:\n\n```\n// array of view controllers to display in page view controller\n- (NSArray *)viewControllersForPageViewController:(MSSPageViewController *)pageViewController;\n```\n\nIf you are using a `UINavigationController` (As shown in Example project) you can embed the tab bar in the navigation bar. Simply set the `UINavigationBar` class in the navigation controller to `MSSTabNavigationBar` and the navigation bar will attach to the view controller.\n\nTo manually attach a tab bar view to the `MSSTabbedPageViewController`:\n\n- Set the `tabBarView` property of the `MSSTabbedPageViewController` to an `MSSTabBarView` instance (Note: `tabBarView` is weak and an `IBOutlet`).\n- Set the `dataSource` and `delegate` properties of the `MSSTabBarView` instance to the `MSSTabbedPageViewController` (Both are `IBOutlet`able).\n\nTo customise the content of the tabs in the tab bar override the following:\n\n```\n- (void)tabBarView:(MSSTabBarView *)tabBarView\n       populateTab:(MSSTabBarCollectionViewCell *)tab\n           atIndex:(NSInteger)index;\n```\n\n### Page View Controller Enhancements\n\nMSSPageViewController is a UIViewController wrapper for UIPageViewController that provides a simpler data source and enhanced delegation methods. The data source methods are encapsulated in the `MSSTabbedPageViewControllerDataSource` as seen above.\n\nThe delegate methods that `MSSPageViewControllerDelegate` provides are listed below:\n\n```\n- (void)pageViewController:(MSSPageViewController *)pageViewController\n     didScrollToPageOffset:(CGFloat)pageOffset\n                 direction:(MSSPageViewControllerScrollDirection)scrollDirection;\n```\nCalled when the page view controller is scrolled by the user to a specific offset, similar to `scrollViewDidScroll`. The pageOffset maintains the current page position and a scroll direction is provided.\n\n```\n- (void)pageViewController:(MSSPageViewController *)pageViewController\n           didScrollToPage:(NSInteger)page;\n```\nCalled when the page view controller completes a full scroll to a new page.\n\n## Appearance\n`MSSTabBarView` provides properties for appearance customisation, including:\n\n- `sizingStyle` - Whether the tab bar should size to fit or equally distribute its tabs.\n- `tabStyle` - The style to use for tabs, either `MSSTabStyleText` for text or `MSSTabStyleImage` for images.\n- `indicatorStyle` - The style to use for the current tab indicator.\n- `indicatorAttributes` - Appearance attributes for current tab indicator.\n- `tabAttributes` - Appearance attributes for tabs.\n- `selectedTabAttributes` - Appearance attributes for the selected tab.\n- `selectionIndicatorTransitionStyle` - The transition style for the selection indicator.\n - `MSSTabTransitionStyleProgressive` to progressively transition between tabs.\n - `MSSTabTransitionStyleSnap` to snap between tabs during transitioning.\n - use `setTransitionStyle:` to set both the `selectionIndicatorTransitionStyle` and `tabTransitionStyle`.\n- `tabTransitionStyle` - The transition style to use for the tabs.\n\n## Requirements\nSupports iOS 8 and above.\n\n## Author\nMerrick Sapsford\n\nMail: [merrick@sapsford.tech](mailto:merrick@sapsford.tech)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsaps%2FMSSTabbedPageViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsaps%2FMSSTabbedPageViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsaps%2FMSSTabbedPageViewController/lists"}