{"id":15038400,"url":"https://github.com/devliusir/lcslidemenu","last_synced_at":"2025-07-10T01:07:33.107Z","repository":{"id":56918280,"uuid":"118234508","full_name":"DevLiuSir/LCSlideMenu","owner":"DevLiuSir","description":"A powerful and easy to use slider menu.","archived":false,"fork":false,"pushed_at":"2018-04-15T15:49:30.000Z","size":60128,"stargazers_count":37,"open_issues_count":0,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T08:02:24.413Z","etag":null,"topics":["cocoapods","controllers","ios-animation","ios-demo","ios11","iosapp","menu-item","slide-menu","swift-4","xcode9"],"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/DevLiuSir.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}},"created_at":"2018-01-20T10:57:19.000Z","updated_at":"2024-08-28T17:40:18.000Z","dependencies_parsed_at":"2022-08-20T21:20:25.018Z","dependency_job_id":null,"html_url":"https://github.com/DevLiuSir/LCSlideMenu","commit_stats":null,"previous_names":["chinahackers/lcslidemenu"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DevLiuSir/LCSlideMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCSlideMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCSlideMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCSlideMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCSlideMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevLiuSir","download_url":"https://codeload.github.com/DevLiuSir/LCSlideMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevLiuSir%2FLCSlideMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264506902,"owners_count":23619095,"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":["cocoapods","controllers","ios-animation","ios-demo","ios11","iosapp","menu-item","slide-menu","swift-4","xcode9"],"created_at":"2024-09-24T20:38:18.603Z","updated_at":"2025-07-10T01:07:33.084Z","avatar_url":"https://github.com/DevLiuSir.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/LCSlideMenu.png)\n\n![language](https://img.shields.io/badge/language-swift-orange.svg)\n[![Swift  4.0](https://img.shields.io/badge/swift-4.0+-blue.svg?style=flat)](https://developer.apple.com/swift/)\n![xcode version](https://img.shields.io/badge/xcode-9+-brightgreen.svg)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/LCSlideMenu.svg)](#cocoapods) \n![download](https://img.shields.io/cocoapods/dt/LCSlideMenu.svg)\n![build ](https://img.shields.io/appveyor/ci/gruntjs/grunt/master.svg)\n![platform](https://img.shields.io/cocoapods/p/LCSlideMenu.svg?style=flat)\n![https://github.com/ChinaHackers/LCSlideMenu/blob/master/LICENSE](https://img.shields.io/github/license/ChinaHackers/LCSlideMenu.svg)\n![GitHub starts](https://img.shields.io/github/stars/ChinaHackers/LCSlideMenu.svg?style=social\u0026label=Stars)\n![GitHub fork](https://img.shields.io/github/forks/ChinaHackers/LCSlideMenu.svg?style=social\u0026label=Fork)\n[![Twitter Follow](https://img.shields.io/twitter/follow/LiuChuan_.svg?style=social)](https://twitter.com/LiuChuan_)\n\n---\n\n## What is LCSlideMenu?\n\n\u003cp align=\"center\"\u003e \u003cb\u003e LCSlideMenu It's a powerful and easy to use slider menu. \u003c/b\u003e\u003c/p\u003e \n\n\n\u003e [中文](https://github.com/ChinaHackers/LCSlideMenu/blob/master/README_CN.md) | [English](https://github.com/ChinaHackers/LCSlideMenu/blob/master/README.md)\n\n\n\n## Screencast from our Demo\n\n| ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast01.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast02.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast03.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast04.gif) |\n| :------------: | :------------: | :------------: | :------------: |\n| `indicatorType = .stretch` `titleStyle = .gradient` |  `indicatorType = .circle` `titleStyle = .gradient` |  `indicatorType = .stretch` `titleStyle = .transfrom` |  `indicatorType = .normal` `titleStyle = .transfrom` |\n\n| ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast05.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast06.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast08.gif) | ![](https://github.com/ChinaHackers/LCSlideMenu/raw/master/Screencast/Screencast07.gif) |\n| :------------: | :------------: | :------------: | :------------: |\n| `indicatorType = .cover` `titleStyle = .gradient` | `isShowIndicatorView = false`  `titleStyle = .transfrom` | `indicatorType = .cover` `titleStyle = .transfrom` | `isShowIndicatorView = false`  `titleStyle = .gradient` |\n\n---\n## Menu indicator and title style\n\n- **Using enumerations to define `LCSlideMenuTitleStyle` and `LCSlideMenuIndicatorStyle` types**\n\n```swift\n\n/// Select the menu header style\n///\n/// - normal: normal\n/// - gradient: The gradient color\n/// - transfrom: zoom\npublic enum LCSlideMenuTitleStyle {\n    case normal\n    case gradient\n    case transfrom\n}\n\n/// Select the menu indicator style\n///\n/// - normal: normal\n/// - stretch: stretch\n/// - followText: Following text length\n/// - cover: mask\n/// - circle: circle\npublic enum LCSlideMenuIndicatorStyle {\n    case normal\n    case stretch\n    case followText\n    case cover\n    case circle\n}\n\n```\n\n\n## Public Attribute\n\n|  Attribute name\t|  Specific introduction of attributes\t|\n| :------------: | :------------: | \n| `coverView` \t\t|  Mask the view |\n|  `indicatorType `  \t|  LCSlideMenu  of  indicator type  |\n| `circleIndicatorColor` |  circle Style Indicator Color  |\n|  `titleStyle`\t\t\t|  Heading styles  |\n| `itemFont`\t\t\t|  The font size of the heading  |\n|  `isShowIndicatorView` |  Whether to display the indicator view  |\n|  `isNeedMask`  \t\t|  Do you need a mask?  |\n| `coverHeight`\t\t| The height of the mask view  |\n|  `coverColor` \t\t|  The background color of the mask view  |\n|  `selectedColor` \t\t| The color in the currently selected state   |\n|  `unSelectedColor` \t| The color of the unchecked state  |\n| `bottomPadding`\t\t| The indicator is at the bottom  |\n| `indicatorHeight`\t\t| Height of indicator |\n\n\n---\n\n## Requirements\n\n- iOS 11.2\n- Xcode 9.2\n- Swift 4.0.3+\n\n## Installation\n\n[CocoaPods](http://cocoapods.org/) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n\n```swift\n$ gem install cocoapods\n```\n\n\n- Just add the `LCSlideMenu` folder to your project.\n\n- or add them to your ` Podfile ` file to  use `CocoaPods`  install  **LCSlideMenu**\n\n\n```swift\nplatform :ios, '11.2'\ntarget '\u003cYour Target Name\u003e' do\nuse_frameworks!\npod 'LCSlideMenu'\nend\n```\n\n\nThen, run the following command:\n\n```swift\n$ pod install\n```\n\n## Example:\n\n\n```swift\nimport UIKit\nimport LCSlideMenu\n\nclass ViewController: UIViewController {\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        example()\n    }\n    fileprivate func example() {\n        \n        let titles = [\"Apple\", \"Banana\", \"Watermelon\", \"Orange\", \"Lemon\", \"Pear\",\"Strawberry\", \"Sapodilla\", \"Haw\", \"Grape\",\"Mango\", \"Plum\", \"Persimmon\", \"Fig\", \"Betelnut\"]\n        var controllers: [UIViewController] = []\n        \n        for _ in 0 ..\u003c titles.count {\n            let vc = UIViewController()\n            vc.view.backgroundColor = UIColor(red: CGFloat(arc4random() % 256) / 255, green: CGFloat(arc4random() % 256) / 255, blue: CGFloat(arc4random() % 256) / 255, alpha: 1)\n            addChildViewController(vc)\n            controllers.append(vc)\n        }\n      \t/* -- LCSlideMenu -- */\n        let slideMenu = LCSlideMenu(frame: CGRect(x: 0, y: 64, width: view.frame.width, height: 40), titles: titles, childControllers: controllers)\n        slideMenu.indicatorType = .cover\n        slideMenu.titleStyle = .gradient\n        slideMenu.isShowIndicatorView = false\n        slideMenu.isNeedMask = true\n        slideMenu.coverView.layer.cornerRadius = slideMenu.coverHeight * 0.2\n        slideMenu.circleIndicatorColor = UIColor.red.cgColor\n        slideMenu.coverColor = .black\n        slideMenu.selectedColor = .white\n        slideMenu.unSelectedColor = .black\n        slideMenu.indicatorView.backgroundColor = .red\n        view.addSubview(slideMenu)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Flcslidemenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevliusir%2Flcslidemenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevliusir%2Flcslidemenu/lists"}