{"id":27399911,"url":"https://github.com/tattn/swipetransition","last_synced_at":"2025-04-14T03:24:50.687Z","repository":{"id":27816916,"uuid":"115102775","full_name":"tattn/SwipeTransition","owner":"tattn","description":"Allows trendy transitions using swipe gesture such as \"swipe back anywhere\".","archived":false,"fork":false,"pushed_at":"2024-09-29T07:20:36.000Z","size":21574,"stargazers_count":310,"open_issues_count":16,"forks_count":41,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-22T06:31:46.027Z","etag":null,"topics":["ios","objective-c","swift","swipe","swipe-gestures","transition","trendy-transitions"],"latest_commit_sha":null,"homepage":"","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/tattn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"tattn","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-12-22T09:59:56.000Z","updated_at":"2025-03-22T05:58:14.000Z","dependencies_parsed_at":"2024-05-17T02:27:34.256Z","dependency_job_id":"a937480d-bdf5-4794-b66f-8ab2f7e7a8e4","html_url":"https://github.com/tattn/SwipeTransition","commit_stats":{"total_commits":209,"total_committers":11,"mean_commits":19.0,"dds":"0.13397129186602874","last_synced_commit":"b854d17921847acd9c69b96d62b67828b8c9f69a"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattn%2FSwipeTransition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattn%2FSwipeTransition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattn%2FSwipeTransition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tattn%2FSwipeTransition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tattn","download_url":"https://codeload.github.com/tattn/SwipeTransition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248814500,"owners_count":21165777,"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":["ios","objective-c","swift","swipe","swipe-gestures","transition","trendy-transitions"],"created_at":"2025-04-14T03:24:49.919Z","updated_at":"2025-04-14T03:24:50.681Z","avatar_url":"https://github.com/tattn.png","language":"Swift","funding_links":["https://github.com/sponsors/tattn","https://paypal.me/tattn/"],"categories":[],"sub_categories":[],"readme":"![logotype-a](https://github.com/tattn/SwipeTransition/blob/main/docs/assets/logotype-a.png)\n===\n\n[![Build Status](https://travis-ci.org/tattn/SwipeTransition.svg?branch=main)](https://travis-ci.org/tattn/SwipeTransition)\n![pods](https://img.shields.io/cocoapods/v/SwipeTransition.svg)\n[![Platform](https://img.shields.io/cocoapods/p/SwipeTransition.svg)](http://cocoapods.org/pods/SwipeTransition)\n[![Swift Version](https://img.shields.io/badge/Swift-5-F16D39.svg)](https://developer.apple.com/swift)\n[![Objective-C compatible](https://img.shields.io/badge/Objective--C-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\nSwipeTransition allows trendy transitions using swipe gesture such as \"swipe back\".\n\n\u003cimg src=\"https://github.com/tattn/SwipeTransition/raw/main/docs/assets/demo.gif\" alt=\"Demo\" width=\"50%\" /\u003e\n\nTry the demo on the web (appetize.io):　https://appetize.io/app/pebm8kveqhfj3wn204adn0xu8r\n\n\n## Features\n\n- [x] Swipe back anywhere.\n- [x] Swipe to dismiss anywhere.\n- [x] Apply to all view controllers automatically!\n- [x] No conflict of gestures on `UIScrollView`, `UITableView`, `UICollectionView` and so on.\n\n# Requirements\n\n- Xcode 15.0\n- iOS 14.0+\n\n# Installation\n\n## Swift Package Manager\n\nYou can install this package with Swift Package Manager.\n\n## CocoaPods\n\n```ruby\npod \"SwipeTransition\"\npod \"SwipeTransitionAutoSwipeBack\"      # if needed\npod \"SwipeTransitionAutoSwipeToDismiss\" # if needed\n```\n\n# Usage\n\n## The easiest way to use\n\nJust setting these frameworks in the `Linked Frameworks and Libraries`, it works. (if you use Swift Package Manager)\n\n![Linked Frameworks and Libraries](https://github.com/tattn/SwipeTransition/raw/main/docs/assets/linked_frameworks.png)\n\nNotes: these frameworks use Method Swizzling.\n\nIf you want to set up manually without Method Swizzling, please use `SwipeTransition` only.\n\n## Manually set up\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003ci\u003eNotes: if you use `AutoSwipeBack.framework`, these are unnecessary.\u003c/i\u003e\u003c/summary\u003e\u003cbr\u003e\n    \nJust use `SwipeBackNavigationController` instead of `UINavigationController`. Of course, you can set it with Interface Builder.\n\n```swift\nlet viewController = UIViewController()\nlet navigationController = SwipeBackNavigationController(rootViewControlelr: viewController)\n````\n\nAnother way is to set `swipeBack`.\n\n```swift\nclass CustomNavigationController: UINavigationController {\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        swipeBack = SwipeBackController(navigationController: self)\n    }\n}\n```\n\u003c/details\u003e\n\n\u003cdetails\u003e\n    \u003csummary\u003e\u003ci\u003eNotes: if you use `AutoSwipeToDismiss.framework`, these are unnecessary.\u003c/i\u003e\u003c/summary\u003e\u003cbr\u003e\n\nJust use `SwipeToDismissNavigationController` instead of `UINavigationController`. Of course, you can set it with Interface Builder.\n\n```swift\nlet viewController = UIViewController()\nlet navigationController = SwipeToDismissNavigationController(rootViewControlelr: viewController)\n````\n\nAnother way is to set `swipeToDismiss`.\n\n```swift\nclass CustomNavigationController: UINavigationController {\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        modalPresentationStyle = .fullScreen\n        swipeToDismiss = SwipeToDismissController(viewController: self)\n    }\n}\n```\n\u003c/details\u003e\n\n\n## Enable/Disable gestures\n\nUse `isEnabled` property.\n\n```swift\nself.navigationController?.swipeBack?.isEnabled = false\nself.swipeToDismiss?.isEnabled = false\n```\n\n## Configuration\n\nYou can also change the behavior such as animation.\n\n```swift\nSwipeBackConfiguration.shared.parallaxFactor = 0.6\n\nSwipeToDismissConfiguration.shared.dismissHeightRatio = 0.5\n```\n\nInheriting the configure class, you can set it with computed property.\n\n```swift\nclass CustomSwipeBackConfiguration: SwipeBackConfiguration {\n    override var transitionDuration: TimeInterval {\n        get { return 1.5 }\n        set { super.transitionDuration = newValue }\n    }\n}\n\nSwipeBackConfiguration.shared = CustomSwipeBackConfiguration()\n```\n\n## Other usage\n\nSee [this wiki](https://github.com/tattn/SwipeTransition/wiki)\n\n# Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Support this project\n\nDonating to help me continue working on this project.\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/tattn/)\n\n\n# ToDo\n- [ ] All `.modalPresentationStyle` support\n- [ ] Animation support (fade / custom)\n- [ ] Some transition styles support (e.g. right to left swipe transition)\n\n\n# License\n\nSwipeTransition is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftattn%2Fswipetransition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftattn%2Fswipetransition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftattn%2Fswipetransition/lists"}