{"id":22740249,"url":"https://github.com/mtzaquia/uikitpresentationmodifier","last_synced_at":"2025-09-05T20:36:04.369Z","repository":{"id":61904920,"uuid":"385514344","full_name":"mtzaquia/UIKitPresentationModifier","owner":"mtzaquia","description":"A modifier allowing you to present UIKit controllers natively from a SwiftUI context.","archived":false,"fork":false,"pushed_at":"2024-03-25T13:45:57.000Z","size":35,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T09:06:52.720Z","etag":null,"topics":["bottom-sheet","ios","modifier","presentation-controller","swiftui","uikit-presentation"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtzaquia.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,"zenodo":null}},"created_at":"2021-07-13T07:21:54.000Z","updated_at":"2025-04-09T10:18:57.000Z","dependencies_parsed_at":"2025-04-14T05:52:19.489Z","dependency_job_id":"88450435-7599-4df5-a1d2-8bad24a23ef0","html_url":"https://github.com/mtzaquia/UIKitPresentationModifier","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mtzaquia/UIKitPresentationModifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzaquia%2FUIKitPresentationModifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzaquia%2FUIKitPresentationModifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzaquia%2FUIKitPresentationModifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzaquia%2FUIKitPresentationModifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtzaquia","download_url":"https://codeload.github.com/mtzaquia/UIKitPresentationModifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtzaquia%2FUIKitPresentationModifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273816404,"owners_count":25173422,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bottom-sheet","ios","modifier","presentation-controller","swiftui","uikit-presentation"],"created_at":"2024-12-10T23:08:01.889Z","updated_at":"2025-09-05T20:36:04.321Z","avatar_url":"https://github.com/mtzaquia.png","language":"Swift","readme":"# UIKitPresentationModifier\n\nA modifier allowing you to present `UIKit` controllers natively from a `SwiftUI` context.\n\n## Instalation\n\nUIKitPresentationModifier is available via Swift Package Manager.\n\n```swift\ndependencies: [\n  .package(url: \"https://github.com/mtzaquia/UIKitPresentationModifier.git\", .upToNextMajor(from: \"1.0.0\")),\n],\n```\n\n## Usage\n\nThe magic happens with the `.presentation(...)` modifier. Simply declare it as you'd normally do with `.sheet(...)` or `.fullScreenCover(...)`. The key difference here is that you need to provide a `UIViewController` which will configure the presentation, unlocking all the flexibility from `UIKit` presentations into your `SwiftUI` context.\n\n```swift\nmyPresentingView\n  .presentation(isPresented: $isPresented) {\n    MyPresentedView()\n  } controllerProvider: { content in\n    let controller = UIHostingController(rootView: content)\n    if #available(iOS 15, *) {\n      if let sheet = controller.sheetPresentationController {\n        sheet.preferredCornerRadius = 12\n        sheet.prefersGrabberVisible = true\n      }\n    }\n    \n    return controller\n  }\n```\n\n## License\n\nCopyright (c) 2024 @mtzaquia\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtzaquia%2Fuikitpresentationmodifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtzaquia%2Fuikitpresentationmodifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtzaquia%2Fuikitpresentationmodifier/lists"}