{"id":13779008,"url":"https://github.com/weitieda/bottom-sheet","last_synced_at":"2025-05-11T12:32:29.074Z","repository":{"id":38246456,"uuid":"259103949","full_name":"weitieda/bottom-sheet","owner":"weitieda","description":"⬆️ A SwiftUI view component sliding in from bottom","archived":false,"fork":false,"pushed_at":"2022-11-14T02:14:42.000Z","size":4224,"stargazers_count":816,"open_issues_count":7,"forks_count":54,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-03T18:13:35.803Z","etag":null,"topics":["animation","card","drag","ios","sheet","swift","swiftpackage","swiftpackagemanager","swiftui"],"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/weitieda.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-26T18:28:54.000Z","updated_at":"2024-08-01T09:39:54.000Z","dependencies_parsed_at":"2023-01-21T20:02:56.959Z","dependency_job_id":null,"html_url":"https://github.com/weitieda/bottom-sheet","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weitieda%2Fbottom-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weitieda%2Fbottom-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weitieda%2Fbottom-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weitieda%2Fbottom-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weitieda","download_url":"https://codeload.github.com/weitieda/bottom-sheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225049017,"owners_count":17412911,"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":["animation","card","drag","ios","sheet","swift","swiftpackage","swiftpackagemanager","swiftui"],"created_at":"2024-08-03T18:01:00.001Z","updated_at":"2024-11-17T14:31:07.568Z","avatar_url":"https://github.com/weitieda.png","language":"Swift","funding_links":[],"categories":["Swift","Sheet"],"sub_categories":["Content"],"readme":"![SwiftUI BottomSheet](Asset/logo.png)\n\n![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/weitieda/BottomSheet)\n[![License](https://img.shields.io/github/license/weitieda/BottomSheet)](LICENSE)\n\n![preview](Asset/demo1.gif)\n![preview](Asset/demo2.gif)\n\n## Usage\n\nSame way as you use `Sheet` in `SwiftUI`\n\n```swift\nNavigationView {\n    List(0..\u003c20) {\n        Text(\"\\($0)\")\n    }.listStyle(PlainListStyle())\n    .bottomSheet(isPresented: $isPresented, height: 300) {\n        List(20..\u003c40) { Text(\"\\($0)\") }.listStyle(PlainListStyle())\n    }\n    .navigationBarTitle(\"Bottom Sheet\")\n    .navigationBarItems(\n        trailing: Button(action: { self.isPresented = true }) {\n            Text(\"Show\")\n        }\n    )\n}\n```\n\n## Example\n\n\u003e Both demo preview code are available in example project.\n\nTo run the example project, clone this repo, and open iOS Example.xcworkspace from the iOS Example directory.\n\n## Installation\n\n\u003e📱 iOS 13.0+\n\n#### Swift Package Manager\nTo install `BottomSheet` using [Swift Package Manager](https://swift.org/package-manager/), add\n`.package(name: \"BottomSheet\", url: \"https://github.com/weitieda/bottom-sheet\", from: \"1.0.0\"),\"` to your Package.swift, then follow the integration tutorial [here](https://swift.org/package-manager#importing-dependencies).\n\n#### CocoaPods\nTo install `BottomSheet` using [CocoaPods](http://cocoapods.org), add\n`pod 'BottomSheet', :git =\u003e 'https://github.com/weitieda/bottom-sheet.git'` to your Podfile, then follow the integration tutorial [here](https://guides.cocoapods.org/using/using-cocoapods.html).\n\n## License\n\nBottomSheet is available under the MIT license. See [the LICENSE file](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweitieda%2Fbottom-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweitieda%2Fbottom-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweitieda%2Fbottom-sheet/lists"}