{"id":18027719,"url":"https://github.com/divadretlaw/windowreader","last_synced_at":"2025-06-21T07:36:37.137Z","repository":{"id":179693476,"uuid":"663985438","full_name":"divadretlaw/WindowReader","owner":"divadretlaw","description":"📱 Access UIWindow/NSWindow in SwiftUI","archived":false,"fork":false,"pushed_at":"2024-08-18T18:16:03.000Z","size":30,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-18T23:15:32.712Z","etag":null,"topics":["nswindow","swift","swiftui","uiwindow"],"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/divadretlaw.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":"2023-07-08T15:55:35.000Z","updated_at":"2024-08-18T18:16:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a54db55-6af8-4b1e-92d7-0a092ff97030","html_url":"https://github.com/divadretlaw/WindowReader","commit_stats":null,"previous_names":["divadretlaw/windowreader"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FWindowReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FWindowReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FWindowReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divadretlaw%2FWindowReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divadretlaw","download_url":"https://codeload.github.com/divadretlaw/WindowReader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222183038,"owners_count":16944872,"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":["nswindow","swift","swiftui","uiwindow"],"created_at":"2024-10-30T08:12:21.018Z","updated_at":"2024-10-30T08:12:21.639Z","avatar_url":"https://github.com/divadretlaw.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WindowReader\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdivadretlaw%2FWindowSceneReader%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/divadretlaw/WindowReader)\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fdivadretlaw%2FWindowSceneReader%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/divadretlaw/WindowReader)\n\nAccess the current `UIWindow` or `NSWindow` from any SwiftUI view.\n\n## Usage\n\nRead the current `UIWindow` or `NSWindow` with `WindowReader`\n\n```swift\n@main\nstruct MyView: View {\n    var body: some Scene {\n        WindowReader { window in\n            ...\n        }\n    }\n}\n```\n\nOn child views the `UIWindow` or `NSWindow` will be available in the `Environment`\n\n### Environment\n\n```swift\n@Environment(\\.window) var window\n```\n\n## License\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivadretlaw%2Fwindowreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivadretlaw%2Fwindowreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivadretlaw%2Fwindowreader/lists"}