{"id":2813,"url":"https://github.com/marcosgriselli/SwipeableTabBarController","last_synced_at":"2025-08-03T12:31:24.941Z","repository":{"id":37932608,"uuid":"80658654","full_name":"marcosgriselli/SwipeableTabBarController","owner":"marcosgriselli","description":"UITabBarController with swipe interaction between its tabs.","archived":false,"fork":false,"pushed_at":"2023-06-04T21:52:42.000Z","size":68234,"stargazers_count":1545,"open_issues_count":15,"forks_count":107,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-11-30T20:14:58.370Z","etag":null,"topics":["animation","cocoapods","ios","swift","swipe","tabbar","ui","uitabbar","uitabbarcontroller","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcosgriselli.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-01T20:04:06.000Z","updated_at":"2024-11-22T17:17:06.000Z","dependencies_parsed_at":"2024-01-28T08:18:28.850Z","dependency_job_id":null,"html_url":"https://github.com/marcosgriselli/SwipeableTabBarController","commit_stats":{"total_commits":146,"total_committers":13,"mean_commits":11.23076923076923,"dds":"0.11643835616438358","last_synced_commit":"f90f5142a9cd119f8929cec1bfcf78aa0a2f2e8f"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosgriselli%2FSwipeableTabBarController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosgriselli%2FSwipeableTabBarController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosgriselli%2FSwipeableTabBarController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcosgriselli%2FSwipeableTabBarController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcosgriselli","download_url":"https://codeload.github.com/marcosgriselli/SwipeableTabBarController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228507991,"owners_count":17931253,"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":["animation","cocoapods","ios","swift","swipe","tabbar","ui","uitabbar","uitabbarcontroller","xcode"],"created_at":"2024-01-05T20:16:23.513Z","updated_at":"2024-12-07T00:30:59.363Z","avatar_url":"https://github.com/marcosgriselli.png","language":"Swift","readme":"![SwipeableTabBarController](./Resources/GIFs/SwipeableTabBarController_logo.gif)\n\n[![Version](https://img.shields.io/cocoapods/v/SwipeableTabBarController.svg)](http://cocoapods.org/pods/SwipeableTabBarController)\n![iOS 8.0+](https://img.shields.io/badge/iOS-8.0%2B-blue.svg)\n![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg)\n![Cartage](https://img.shields.io/badge/carthage-compatible-4BC51D.svg)\n[![License](https://img.shields.io/cocoapods/l/SwipeableTabBarController.svg)](http://cocoapods.org/pods/SwipeableTabBarController)\n[![codebeat badge](https://codebeat.co/badges/0cb2f5b2-5bd1-4cbe-8581-3ca3df0e79ab)](https://codebeat.co/projects/github-com-marcosgriselli-swipeabletabbarcontroller-master)\n\n## 🌟 Features\n\n- [x] Zero setup \n- [x] Different animations\n- [x] Enable/Disable interactions easily\n- [x] Fluid gestures\n\n## 📲 Installation\n\n#### Using [CocoaPods](https://cocoapods.org)\n\nEdit your `Podfile` and specify the dependency:\n\n```ruby\npod 'SwipeableTabBarController'\n```\n\n#### Using [Carthage](https://github.com/carthage)\n\nEdit your `Cartfile` and specify the dependency:\n\n```bash\ngithub \"marcosgriselli/SwipeableTabBarController\"\n```\n\n#### Manual\n\nDrop the classes inside of SwipeableTabBarController/Classes into your project.\n\n## 👩‍💻 How to use\n\n### Setup\n\nIf you don't need subclassing `UITabBarController` just set the `UITabBarController` on the Storyboard to be of type `SwipeableTabBarController`.\n\nOtherwise, make a subclass of `SwipeableTabBarController`.\n\n```swift\nimport SwipeableTabBarController\n\nclass TabBarController: SwipeableTabBarController {\n    // Do all your subclassing as a regular UITabBarController.\n}\n```\n\n### Animations\n\n`SwipeableTabBarController` supports 3 different types of animations out of the box. Setting the desired animation is easy. On your `SwipeableTabBarController` subclass just do:\n\n```swift\nswipeAnimatedTransitioning?.animationType = SwipeAnimationType.sideBySide\n```\n\nIf you are supporting just one type of animation call it on `viewDidLoad()` otherwise call it as you need to change the desired animation.\n\n#### Side by Side (default)\n\n\u003ca href=\"url\"\u003e\u003cimg src=\"./Resources/GIFs/SideBySideAnimation.gif\" height=\"216\" width=\"125\" \u003e\u003c/a\u003e\n\nThe default animation is `SwipeAnimationType.sideBySide` where the newly selected tab will move in at the same speed the previous one moves out.\n\n#### Overlap\n\n\u003ca href=\"url\"\u003e\u003cimg src=\"./Resources/GIFs/OverlapAnimation.gif\" height=\"240\" width=\"125\" \u003e\u003c/a\u003e\n\n`SwipeAnimationType.overlap` the newly selected tab will move in to take the central place on top of the previous one which will hold it's position.\n\n#### Push\n\n\u003ca href=\"url\"\u003e\u003cimg src=\"./Resources/GIFs/PushAnimation.gif\" height=\"240\" width=\"125\" \u003e\u003c/a\u003e\n\n`SwipeAnimationType.push` follows iOS default push animation where the top view moves away while the bottom one slightly moves behind. In this case, the top view will be the previously selected tab view.\n\n\u003c!-- \n### Restricted Swipe\n\nYou can choose to restrict your swiping to perfect horizontal swipe or support diagonal movement as well. I recommend enabling horizontal swipe if you are not using any kind of scrollViews on your controllers.\n\nDefault value is ```false```\n\n```swift\nsetDiagonalSwipe(enabled: true)\n```\n---\u003e\n\n### Enable Cycling \n\n`SwipeableTabBarController` supports cycling between the first and last tab like a carousel. Simply set `isCyclingEnabled` to `true`.\n\nDefault value is `false`\n```swift\nisCyclingEnabled = true\n```\n\n### Minimum/Maximum number of touches \n\nYou can set both the minimum and the maximum number of touches needed to handle the swipe gesture. Simply set `minimumNumberOfTouches` or `maximumNumberOfTouches`  property.\n\nDefault value is `1`\n```swift\nminimumNumberOfTouches = 2\n```\n\nDefault value is `Int.max`\n```swift\nmaximumNumberOfTouches = 2\n```\n\n### Disable Interaction\n\nSupport for disabling/enabling the interactor, this can be used on a controller that uses horizontal scrollView or a Map (in the example).\n\nDefault value is ```true```\n\n```swift\nisSwipeEnabled = false\n```\n\n## ❤️ Contributing\nThis is an open source project, so feel free to contribute. How?\n- Open an [issue](https://github.com/marcosgriselli/Sizes/issues/new).\n- Send feedback via [twitter](https://twitter.com/marcosgriselli).\n- Propose your own fixes, suggestions and open a pull request with the changes.\n\n**Contributors**\n\n[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/0)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/0)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/1)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/1)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/2)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/2)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/3)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/3)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/4)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/4)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/5)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/5)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/6)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/6)[![](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/images/7)](https://sourcerer.io/fame/marcosgriselli/marcosgriselli/SwipeableTabBarController/links/7)\n\n## 👨‍💻 Author\n\nMarcos Griselli | \u003ca href=\"url\"\u003e\u003cimg src=\"./Resources/twitterIcon.png\" height=\"17\"\u003e\u003c/a\u003e [@marcosgriselli](https://twitter.com/marcosgriselli)\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/marcosgriselli.svg?style=social)](https://twitter.com/marcosgriselli)\n\n[![GitHub Follow](https://img.shields.io/github/followers/marcosgriselli.svg?style=social\u0026label=Follow)](https://github.com/marcosgriselli)\n\n## 🛡 License\n\n```\nMIT License\n\nCopyright (c) 2018 Marcos Griselli\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":["UI","TabBar","Swift","Content","TabBarController","xcode"],"sub_categories":["Tab Bar","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosgriselli%2FSwipeableTabBarController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcosgriselli%2FSwipeableTabBarController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcosgriselli%2FSwipeableTabBarController/lists"}