{"id":18239989,"url":"https://github.com/wojtek717/bottom-sheet","last_synced_at":"2025-04-04T08:30:43.756Z","repository":{"id":259374275,"uuid":"876885480","full_name":"wojtek717/bottom-sheet","owner":"wojtek717","description":"Custom Bottom Sheet view for SwiftUI allowing to recreate sheet from Apple's Map, Find My apps. iOS Maps-like, Find My-like bottom sheet.","archived":false,"fork":false,"pushed_at":"2024-11-04T13:05:22.000Z","size":50,"stargazers_count":12,"open_issues_count":6,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-04T22:34:45.363Z","etag":null,"topics":["bottomsheet","ios","sheet","spm","swift","swiftui","xcode"],"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/wojtek717.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-22T18:01:33.000Z","updated_at":"2024-11-04T13:19:28.000Z","dependencies_parsed_at":"2024-10-24T23:33:06.562Z","dependency_job_id":"c731e162-f70e-45bd-831d-760c1db6fb3a","html_url":"https://github.com/wojtek717/bottom-sheet","commit_stats":null,"previous_names":["wojtek717/bottom-sheet"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojtek717%2Fbottom-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojtek717%2Fbottom-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojtek717%2Fbottom-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wojtek717%2Fbottom-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wojtek717","download_url":"https://codeload.github.com/wojtek717/bottom-sheet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223112320,"owners_count":17089314,"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":["bottomsheet","ios","sheet","spm","swift","swiftui","xcode"],"created_at":"2024-11-05T04:04:24.803Z","updated_at":"2024-11-05T04:04:39.873Z","avatar_url":"https://github.com/wojtek717.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Please keep in mind that Bottom Sheet is still in beta. Some documentation is missing, more modifiers coming soon!\n\n# Bottom Sheet\nA small and lightweight library that adds a bottom sheet that can be used with TabView to make it stay on top. And more!\n\n![example-ezgif com-video-to-gif-converter-2](https://github.com/user-attachments/assets/a28b9c81-7a19-4873-8aef-9a5a4f67cd9d)\n\n\n# Why?\nThe main idea behind BottomSheet is to allow you to add a sheet that can be displayed below the TabView rather than with the native .sheet, which will always be shown on top of all elements.\nBottomSheet can be used to recreate the sheet from Apple Maps, Shortcuts and Apple Music.\n\n# Requirements \n- iOS 18,\n- Swift 6.0\n- Xcode 16\n\n# Installation\n\n## Swift Package Manager\n\nThe preferred way of installing BottomSheet is via the Swift Package Manager.\n\nXcode 16 integrates with libSwiftPM to provide support for iOS, watchOS, and tvOS platforms.\nIn Xcode, open your project and navigate to File → Add Packages\nPaste the repository URL (https://github.com/wojtek717/bottom-sheet) and click Next.\nFor Rules, select Up to Next Major Version.\nClick Add Package.\n\n# Usage\n\n``` Swift\n Map { }\n.bottomSheet(isPresented: $showCustomSheet) {\n// Sheet content goes here\n}\n  .detentsPresentation(detents: [.small, .medium, .large]) // configure sheet detents\n  .ignoresSafeAreaEdgesPresentation(nil) // configure safe area edges to ignore\n  .dragIndicatorPresentation(isVisible: true) // display drag indicator\n```\n\n# Modifiers\n`.detentsPresentation(detents: [Detent])`:\nSets the available detents for the enclosing sheet.\n\n`.dragIndicatorPresentation(isVisible: Bool, color: Color = .gray)`:\nSets the visibility of the drag indicator on top of a sheet and it's color.\n\n`.ignoresSafeAreaEdgesPresentation(_ edges: Edge.Set?)`:\nExpands the safe area of a sheet.\n\n`.sheetColor(_ color: Color)`:\nSets sheet's background color.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojtek717%2Fbottom-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwojtek717%2Fbottom-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwojtek717%2Fbottom-sheet/lists"}