{"id":2628,"url":"https://github.com/yannickl/FlowingMenu","last_synced_at":"2025-08-06T16:31:15.027Z","repository":{"id":45726519,"uuid":"47339035","full_name":"yannickl/FlowingMenu","owner":"yannickl","description":"Interactive view transition to display menus with flowing and bouncing effects in Swift","archived":false,"fork":false,"pushed_at":"2019-10-09T07:52:00.000Z","size":303,"stargazers_count":974,"open_issues_count":12,"forks_count":111,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-09-17T22:23:23.350Z","etag":null,"topics":["drawer","menu","sliding-menu"],"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/yannickl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-12-03T15:00:56.000Z","updated_at":"2024-08-02T18:55:46.000Z","dependencies_parsed_at":"2022-09-07T17:35:56.441Z","dependency_job_id":null,"html_url":"https://github.com/yannickl/FlowingMenu","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FFlowingMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FFlowingMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FFlowingMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FFlowingMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannickl","download_url":"https://codeload.github.com/yannickl/FlowingMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923694,"owners_count":17992567,"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":["drawer","menu","sliding-menu"],"created_at":"2024-01-05T20:16:18.725Z","updated_at":"2024-12-09T16:31:02.767Z","avatar_url":"https://github.com/yannickl.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Menu","Swift","UI [🔝](#readme)","OOM-Leaks-Crash","Content"],"sub_categories":["Menu","UI","Layout","Other free courses","Side Drawer"],"readme":"# FlowingMenu\n\n[![Supported Platforms](https://cocoapod-badges.herokuapp.com/p/FlowingMenu/badge.svg)](http://cocoadocs.org/docsets/FlowingMenu/) [![Version](https://cocoapod-badges.herokuapp.com/v/FlowingMenu/badge.svg)](http://cocoadocs.org/docsets/FlowingMenu/) [![Swift Package Manager compatible](https://img.shields.io/badge/SPM-%E2%9C%93-brightgreen.svg?style=flat)](https://github.com/apple/swift-package-manager) [![Carthage compatible](https://img.shields.io/badge/Carthage-%E2%9C%93-brightgreen.svg?style=flat)](https://github.com/Carthage/Carthage) [![Build Status](https://travis-ci.org/yannickl/FlowingMenu.svg?branch=master)](https://travis-ci.org/yannickl/FlowingMenu) [![codecov.io](http://codecov.io/github/yannickl/FlowingMenu/coverage.svg?branch=master)](http://codecov.io/github/yannickl/FlowingMenu?branch=master) [![codebeat badge](https://codebeat.co/badges/5b519917-eedc-4b7b-8a2d-9dfeed597894)](https://codebeat.co/projects/github-com-yannickl-flowingmenu)\n\n**FlowingMenu** provides an interactive transition manager to display menu with a flowing and bouncing effects. The Objective-C countepart is here https://github.com/yannickl/YLFlowingMenu.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"http://yannickloriot.com/resources/flowingmenu.gif\" alt=\"FlowingMenu\" width=\"300\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"#requirements\"\u003eRequirements\u003c/a\u003e • \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e • \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e • \u003ca href=\"#contribution\"\u003eContribution\u003c/a\u003e • \u003ca href=\"#contact\"\u003eContact\u003c/a\u003e • \u003ca href=\"#license-mit\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n## Requirements\n\n- iOS 9.0+\n- Xcode 9.0+\n- Swift 4.2+\n\n## Usage\n\nAt first, import FlowingMenu:\n\n```swift\nimport FlowingMenu\n```\n\nThen just add a `FlowingMenuTransitionManager` object that acts as `transitioningDelegate` of the view controller you want display:\n\n```swift\nlet flowingMenuTransitionManager = FlowingMenuTransitionManager()\n\noverride func prepare(for segue: UIStoryboardSegue, sender: Any?) {\n  let vc                   = segue.destination\n  vc.transitioningDelegate = flowingMenuTransitionManager\n}\n```\n\nIf you want interactive transition you will need to implement the `FlowingMenuDelegate` methods and defines the views which will interact with the gestures:\n\n```swift\nvar menu: UIViewController?\n\noverride func viewDidLoad() {\n  super.viewDidLoad()\n\n  // Add the pan screen edge gesture to the current view\n  flowingMenuTransitionManager.setInteractivePresentationView(view)\n\n  // Add the delegate to respond to interactive transition events\n  flowingMenuTransitionManager.delegate = self\n}\n\noverride func prepare(for segue: UIStoryboardSegue, sender: Any?) {\n  let vc                   = segue.destination\n  vc.transitioningDelegate = flowingMenuTransitionManager\n\n  // Add the left pan gesture to the menu\n  flowingMenuTransitionManager.setInteractiveDismissView(vc.view)\n\n  // Keep a reference of the current menu\n  menu = vc\n}\n\n// MARK: - FlowingMenu Delegate Methods\n\nfunc flowingMenuNeedsPresentMenu(_ flowingMenu: FlowingMenuTransitionManager) {\n  performSegue(withIdentifier: \"PresentSegueName\", sender: self)\n}\n\nfunc flowingMenuNeedsDismissMenu(_ flowingMenu: FlowingMenuTransitionManager) {\n  menu?.performSegue(withIdentifier: \"DismissSegueName\", sender: self)\n}\n```\n\nHave fun! :)\n\n### For more information...\n\nTo go further, take a look at the documentation and the example project.\n\n*Note: All contributions are welcome*\n\n## Installation\n\n#### CocoaPods\n\nInstall CocoaPods if not already available:\n\n``` bash\n$ [sudo] gem install cocoapods\n$ pod setup\n```\nGo to the directory of your Xcode project, and Create and Edit your Podfile and add _FlowingMenu_:\n\n``` bash\n$ cd /path/to/MyProject\n$ touch Podfile\n$ edit Podfile\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\n\nuse_frameworks!\npod 'FlowingMenu', '~\u003e 3.1.0'\n```\n\nInstall into your project:\n\n``` bash\n$ pod install\n```\n\nOpen your project in Xcode from the .xcworkspace file (not the usual project file):\n\n``` bash\n$ open MyProject.xcworkspace\n```\n\nYou can now `import FlowingMenu` framework into your files.\n\n#### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that automates the process of adding frameworks to your Cocoa application.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate `FlowingMenu` into your Xcode project using Carthage, specify it in your `Cartfile` file:\n\n```ogdl\ngithub \"yannickl/FlowingMenu\" \u003e= 3.1.0\n```\n\n#### Swift Package Manager\nYou can use [The Swift Package Manager](https://swift.org/package-manager) to install `FlowingMenu` by adding the proper description to your `Package.swift` file:\n```swift\nimport PackageDescription\n\nlet package = Package(\n    name: \"YOUR_PROJECT_NAME\",\n    targets: [],\n    dependencies: [\n        .Package(url: \"https://github.com/yannickl/FlowingMenu.git\", versions: \"3.1.0\" ..\u003c Version.max)\n    ]\n)\n```\n\nNote that the [Swift Package Manager](https://swift.org/package-manager) is still in early design and development, for more information checkout its [GitHub Page](https://github.com/apple/swift-package-manager).\n\n#### Manually\n\n[Download](https://github.com/YannickL/FlowingMenu/archive/master.zip) the project and copy the `FlowingMenu` folder into your project to use it in.\n\n## Contribution\n\nContributions are welcomed and encouraged *♡*.\n\n## Contact\n\nYannick Loriot\n - [https://21.co/yannickl/](https://21.co/yannickl/)\n - [https://twitter.com/yannickloriot](https://twitter.com/yannickloriot)\n\n## License (MIT)\n\nCopyright (c) 2015-present - Yannick Loriot\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\nall copies 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\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FFlowingMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannickl%2FFlowingMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FFlowingMenu/lists"}