[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7081":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":38,"discoverSource":39},7081,"Side-Menu.iOS","Yalantis\u002FSide-Menu.iOS","Yalantis","Animated side menu with customizable UI","https:\u002F\u002Fyalantis.com\u002F?utm_source=github",null,"Swift",2714,315,115,2,0,59.5,"MIT License",false,"master",true,[23,24,25,26,27,28,29,30,31,32,33,34],"animation","cocoapods","ios","menu","menu-navigation","menubar","navigation","panel","side-menu","side-menu-oco","sidemenu","swift","2026-06-12 04:00:32","# Side Menu\r\n\r\n[![Platform](http:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-iOS-blue.svg?style=flat)](http:\u002F\u002Fcocoapods.org\u002F?q=YALSideMenu)\r\n[![License](http:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-green.svg?style=flat)](https:\u002F\u002Fgithub.com\u002FYalantis\u002FSide-Menu.iOS\u002Fblob\u002Fmaster\u002FLICENSE)\r\n\r\nAnimated side menu with customizable UI. \r\nMade in \u003Ca href=\"https:\u002F\u002Fyalantis.com\u002F?utm_source=github\"> Yalantis\u003C\u002Fa>.\u003Cbr>\r\nCheck this \u003Ca href=\"https:\u002F\u002Fdribbble.com\u002Fshots\u002F1689922-Side-Menu-Animation?list=searches&tag=yalantis&offset=0\">project on dribbble\u003C\u002Fa>.\u003Cbr>\r\nCheck this \u003Ca href=\"https:\u002F\u002Fwww.behance.net\u002Fgallery\u002F20411445\u002FMobile-Animations-Interactions \">project on Behance\u003C\u002Fa>.\r\n\r\n\u003Cimg src=\"https:\u002F\u002Fd13yacurqjgara.cloudfront.net\u002Fusers\u002F125056\u002Fscreenshots\u002F1689922\u002Fevents-menu_1-1-6.gif\" \u002F>\r\n\r\n## Requirements\r\n\r\n- iOS 7+\r\n- Swift 5\r\n- Xcode 11\r\n\r\n## Installation\r\n\r\n#### Using [CocoaPods](http:\u002F\u002Fcocoapods.org)\r\n\r\nSimply add the following line to your Podfile:\r\n\r\n```ruby\r\npod 'YALSideMenu', '~> 2.0.1'\r\n```\r\n\r\n*(CocoaPods v1.1 or later is required)*\r\n\r\n#### Manual Installation\r\n\r\n> For application targets that do not support embedded frameworks, such as iOS 7, SideMenu can be integrated by including source files from the SideMenu folder directly, optionally wrapping the top-level types into `struct SideMenu` to simulate a namespace. Yes, this sucks.\r\n\r\n1. Add SideMenu as a [submodule](http:\u002F\u002Fgit-scm.com\u002Fdocs\u002Fgit-submodule) by opening the Terminal, `cd`-ing into your top-level project directory, and entering the command `git submodule add https:\u002F\u002Fgithub.com\u002Fyalantis\u002FSide-Menu.iOS.git`\r\n2. Open the `SideMenu` folder, and drag `SideMenu.xcodeproj` into the file navigator of your app project.\r\n3. In Xcode, navigate to the target configuration window by clicking on the blue project icon, and selecting the application target under the \"Targets\" heading in the sidebar.\r\n4. Ensure that the deployment target of `SideMenu.framework` matches that of the application target.\r\n5. In the tab bar at the top of that window, open the \"Build Phases\" panel.\r\n6. Expand the \"Target Dependencies\" group, and add `SideMenu.framework`.\r\n7. Expand the \"Link Binary With Libraries\" group, and add `SideMenu.framework`\r\n8. Click on the `+` button at the top left of the panel and select \"New Copy Files Phase\". Rename this new phase to \"Copy Frameworks\", set the \"Destination\" to \"Frameworks\", and add `SideMenu.framework`.\r\n\r\n## Usage\r\n\r\n1. Import `SideMenu` module\r\n\r\n\t```swift\r\n\timport SideMenu\r\n\t```\r\n\r\n2. Adopt the `Menu` protocol in your menu view controller, e.g.\r\n\r\n\t```swift\r\n\tclass MyFancyMenuViewController: UIViewController, Menu  {\r\n        @IBOutlet var menuItems = [UIView] ()\r\n\t}\r\n\t```\r\n\r\n3. Set `preferredContentSize` in menu view controller to specify the desired menu width\r\n4. In content view controller store an animator, that will animate our menu.\r\n\r\n\t```swift\r\n\timport SideMenu\r\n\tclass ContentViewController: UIViewController  {\r\n        var menuAnimator : MenuTransitionAnimator!\r\n\t}\r\n\t```\r\n5. Initialize an animator for presentation with parameters\r\n\r\n\t```swift\r\n\tmenuAnimator = MenuTransitionAnimator(mode: .presentation, shouldPassEventsOutsideMenu: false) { [unowned self] in\r\n        self.dismiss(animated: true, completion: nil)\r\n\t}\r\n\t```\r\n\t\r\n If you want, for example, to dismiss your menu when a tap outside menu takes place, you should pass `false` to `shouldPassEventsOutsideMenu` flag and assign a `tappedOutsideHandler`.In fact, you are free to do whatever you want when a tap outside menu occurs or, if you want to have access to your content view controller, just pass `true` and assign `tappedOutsideHandler` to nil.\r\n \r\n It's possible to specify menu position starting from version `2.0.2`. To position menu on the left side you should pass `.left` to `position` in `MenuTransitionAnimator` init. To position menu on the right side - pass `.right` accordingly.\r\n \r\n6. Implement class of UIViewControllerTransitioningDelegate that will return our menuAnimator from method animationControllerForPresentedController and assign it to transitioningDelegate of menu view controller(Don't forget to set .Custom modal presentation style). To dismiss menu you should return MenuTransitionAnimator(mode: .Dismissal) from animationControllerForDismissedController method.\r\n\r\n    ```swift\r\n    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {\r\n        let menu = segue.destination as! MenuViewController\r\n        menu.transitioningDelegate = self\r\n        menu.modalPresentationStyle = .custom\r\n    }\r\n\r\n    func animationController(forPresented presented: UIViewController, presenting _: UIViewController,\r\n        source _: UIViewController) -> UIViewControllerAnimatedTransitioning? {\r\n            return menuAnimator\r\n    }\r\n    \r\n    func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {\r\n        return MenuTransitionAnimator(mode: .dismissal)\r\n    }\r\n    ```\r\n\r\n## Let us know!\r\n\r\nWe’d be really happy if you sent us links to your projects where you use our component. Just send an email to github@yalantis.com And do let us know if you have any questions or suggestion regarding the animation. \r\n\r\nP.S. We’re going to publish more awesomeness wrapped in code and a tutorial on how to make UI for iOS (Android) better than better. Stay tuned!\r\n    \r\n## License\r\n\r\n\tThe MIT License (MIT)\r\n\r\n\tCopyright © 2018 Yalantis\r\n\r\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\r\n\tof this software and associated documentation files (the \"Software\"), to deal\r\n\tin the Software without restriction, including without limitation the rights\r\n\tto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\r\n\tcopies of the Software, and to permit persons to whom the Software is\r\n\tfurnished to do so, subject to the following conditions:\r\n\r\n\tThe above copyright notice and this permission notice shall be included in\r\n\tall copies or substantial portions of the Software.\r\n\r\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n\tTHE SOFTWARE.\r\n","Yalantis\u002FSide-Menu.iOS 是一个为 iOS 应用提供可自定义用户界面的动画侧边菜单库。其核心功能包括流畅的动画效果和高度可定制的 UI 设计，支持通过 CocoaPods 或手动方式集成到项目中。该库使用 Swift 语言编写，要求 Xcode 11 及以上版本，并兼容 iOS 7 及更高版本。它适用于需要增强导航体验的应用场景，特别是那些希望在不牺牲性能的情况下提升用户体验的移动应用开发者。通过简单的配置步骤，开发者可以轻松地将这个侧边菜单添加到自己的应用程序中，从而快速实现现代化且直观的用户交互设计。","2026-06-11 03:10:27","top_language"]