{"id":15650430,"url":"https://github.com/simonbs/bspanviewcontroller","last_synced_at":"2025-04-30T17:02:38.977Z","repository":{"id":11905893,"uuid":"14470019","full_name":"simonbs/BSPanViewController","owner":"simonbs","description":"A take on the sliding controllers which can optionally move the status bar along with the main view.","archived":false,"fork":false,"pushed_at":"2013-11-26T12:28:34.000Z","size":3976,"stargazers_count":36,"open_issues_count":3,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-30T17:02:24.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"likeastore/ngDialog","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonbs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-17T16:15:40.000Z","updated_at":"2023-01-31T20:36:57.000Z","dependencies_parsed_at":"2022-09-14T22:03:35.467Z","dependency_job_id":null,"html_url":"https://github.com/simonbs/BSPanViewController","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2FBSPanViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2FBSPanViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2FBSPanViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonbs%2FBSPanViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonbs","download_url":"https://codeload.github.com/simonbs/BSPanViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251748934,"owners_count":21637414,"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-10-03T12:34:36.756Z","updated_at":"2025-04-30T17:02:38.920Z","avatar_url":"https://github.com/simonbs.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BSPanViewController\n\nBSPanViewController is my take on the popular side menu. You can have a controller to be revealed in both the left and the right side. \nYou can optionally have the controller move the status bar along with the main view. This is shown in the animation below where the status bar moves with the view when opening the left side but stays in place when opening the right side.\nThe controller also makes it easy to add and configure a parallax effect when opening and closing the sides. The parallax effect is optional.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshot.gif\" alt=\"Screenshot\" width=\"320\" /\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- BSPanViewController requires ARC to be enabled. If you are not already using ARC, now is a good time.\n- The control does only support iOS 7.\n\n## Installation\n\nIf  you are using CocoaPods (which you should!) you can just add the following to your podfile and run `pod install`.\n\n\tpod 'BSPanViewController', :git =\u003e 'https://github.com/simonbs/BSPanViewController.git'\n\nIf you are not not using CocoaPods, you should clone this repository and copy BSPanViewController/ directory into your project.\n\nWhen you have installed BSPanViewController either using CocoaPods or not, you just need to import the `BSPanViewController.h`.\n\n\t#import \"BSPanViewController.h\"\u0010\u0010\n\n## Usage\n\nUsing BSPanViewController is easy peasy. You just initialize an instance of BSPanViewController and then you will (usually) set it as the root view controller on your instance of `UIWindow` in the app delegate.\n\nIf you want to use the pan gesture you must enable this using `leftPanEnabled` and `rightPanEnabled`.\n\nYou set `mainController` which is the controller which can be dragged. That is, it is the top most controller. `leftController` and `rightController` are both shown below the main controller. These are the controllers that can be revealed when dragging the main controller. You can have both a left and a right controller or just one of them.\n\n\tself.panController = [BSPanViewController new];\n    self.panController.leftPanEnabled = YES;\n    self.panController.rightPanEnabled = YES;\n    self.panController.mainController = navigationController;\n    self.panController.leftController = [LeftViewController new];\n    self.panController.rightController = [RightViewController new];\n    \nBSPanViewController has a lot of settings which can be set independently for the left and the right side. Please take a look at `BSPanViewController.h` for more information on the settings.\n\nThe control works with `UIViewControllerBasedStatusBarAppearance` set to `YES` or `NO`. If you have the value set to `YES` you might want to subclass BSPanViewController and implemenet `-preferredStatusBarStyle` to decide the style of the status bar.\n\n## Known Issues\n\n- There are issues with the colors of the snapshot taken of the status bar when your navigation bar is translucent.\n\nLet me know if you find anything else.\n\n## Demo Project\n\nThe repsitory contains a simple example project. This project was used to create the animation shown above.\n\n## Credits\n\nBSPanViewController is developed by [@simonbs](http://twitter.com/simonbs), [simonbs.dk](http://simonbs.dk) Feel free to fork the repository and send pull requests if you have made something awesome.\n\n## License\n\nBSPanViewController is released under the MIT license. Please see the LICENSE file for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fbspanviewcontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonbs%2Fbspanviewcontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbs%2Fbspanviewcontroller/lists"}