{"id":19687839,"url":"https://github.com/bruce-pac/slidedrawer","last_synced_at":"2025-04-29T08:34:21.961Z","repository":{"id":62455618,"uuid":"154947132","full_name":"Bruce-pac/SlideDrawer","owner":"Bruce-pac","description":"A lightweight, no intrusion，one line code to use, Slide Drawer written Swift 5. 一行代码实现侧滑抽屉。","archived":false,"fork":false,"pushed_at":"2024-08-26T07:14:39.000Z","size":7372,"stargazers_count":12,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-26T11:45:34.429Z","etag":null,"topics":["drawer","drawerviewcontroller","slide","swift"],"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/Bruce-pac.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-27T09:28:05.000Z","updated_at":"2024-09-10T14:20:29.000Z","dependencies_parsed_at":"2024-08-26T08:03:48.553Z","dependency_job_id":"eed4ee22-83cf-4955-bf59-e9544e1a4b6e","html_url":"https://github.com/Bruce-pac/SlideDrawer","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-pac%2FSlideDrawer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-pac%2FSlideDrawer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-pac%2FSlideDrawer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bruce-pac%2FSlideDrawer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bruce-pac","download_url":"https://codeload.github.com/Bruce-pac/SlideDrawer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224157001,"owners_count":17265598,"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","drawerviewcontroller","slide","swift"],"created_at":"2024-11-11T18:36:17.669Z","updated_at":"2024-11-11T18:36:18.180Z","avatar_url":"https://github.com/Bruce-pac.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SlideDrawer\n\n[![CI Status](https://img.shields.io/travis/Bruce-pac/SlideDrawer.svg?style=flat)](https://travis-ci.org/Bruce-pac/SlideDrawer)\n[![Version](https://img.shields.io/cocoapods/v/SlideDrawer.svg?style=flat)](https://cocoapods.org/pods/SlideDrawer)\n![Carthage](https://camo.githubusercontent.com/3dc8a44a2c3f7ccd5418008d1295aae48466c141/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f43617274686167652d636f6d70617469626c652d3442433531442e7376673f7374796c653d666c6174)\n[![SPM](https://camo.githubusercontent.com/ad744674ba25cccb6e683eb78b7c485e1b63b2d2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53776966742532305061636b6167652532304d616e616765722d636f6d70617469626c652d627269676874677265656e2e737667)](https://github.com/apple/swift-package-manager)\n[![License](https://img.shields.io/cocoapods/l/SlideDrawer.svg?style=flat)](https://cocoapods.org/pods/SlideDrawer)\n[![Platform](https://img.shields.io/cocoapods/p/SlideDrawer.svg?style=flat)](https://cocoapods.org/pods/SlideDrawer)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n- iOS 10.0+\n- Swift 5.0+\n\n## Installation\n\n### CocoaPods\n\nSlideDrawer is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SlideDrawer'\n```\n\n### Carthage\n\nTo integrate SlideDrawer into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:\n\n```\ngithub \"Bruce-pac/SlideDrawer\"\n```\n\nThen, run the following command to build the SlideDrawer framework:\n\n```\n$ carthage update --platform ios\n```\n\nAt last, you need to set up your Xcode project manually to add the SlideDrawer framework:\n\n1. On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build folder on disk.\n2. On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script with the following content:\n\n```\n/usr/local/bin/carthage copy-frameworks\n```\n\n1. Add the paths to the frameworks you want to use under “Input Files”:\n\n```\n$(SRCROOT)/Carthage/Build/iOS/SlideDrawer.framework\n```\n\n1. Add the paths to the copied frameworks to the “Output Files”:\n\n```\n$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/SlideDrawer.framework\n```\n\n## Usage\n\n```swift\nlet vc = LeftViewController()\n//self is the main/center ViewController\nself.sd.show(drawer: vc) //default left\n// you can set direction right by this\nself.sd.show(drawer: vc) { (letConfig) -\u003e SlideDrawerConfiguration in\n                var config = letConfig\n                config.direction = .right\n                return config\n}\n\n// add interactive gesture to show the drawer\nself.sd.register(gesture: .edge) { (direction) in\n            self.zoom(from: direction)\n}\n```\n\nSee Examples for more usage\n\n## Author\n\nBruce-pac, Bruce_pac312@foxmail.com\n\n## License\n\nSlideDrawer is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruce-pac%2Fslidedrawer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbruce-pac%2Fslidedrawer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbruce-pac%2Fslidedrawer/lists"}