{"id":17688668,"url":"https://github.com/boybeak/swiftuiwindow","last_synced_at":"2025-03-30T21:29:51.183Z","repository":{"id":254085463,"uuid":"845356474","full_name":"boybeak/SwiftUIWindow","owner":"boybeak","description":"Quick open a window with SwiftUI for macOS","archived":false,"fork":false,"pushed_at":"2024-08-21T16:20:40.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T01:43:00.924Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/boybeak.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":"2024-08-21T05:05:02.000Z","updated_at":"2024-08-30T03:59:52.000Z","dependencies_parsed_at":"2024-08-21T10:27:52.116Z","dependency_job_id":"d41e3b9a-c94f-46f4-94ef-155b72c7a2f1","html_url":"https://github.com/boybeak/SwiftUIWindow","commit_stats":null,"previous_names":["boybeak/swiftuiwindow"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FSwiftUIWindow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FSwiftUIWindow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FSwiftUIWindow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boybeak%2FSwiftUIWindow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boybeak","download_url":"https://codeload.github.com/boybeak/SwiftUIWindow/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246384443,"owners_count":20768616,"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":[],"created_at":"2024-10-24T11:45:01.818Z","updated_at":"2025-03-30T21:29:51.165Z","avatar_url":"https://github.com/boybeak.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUIWindow\nQuick open a window with SwiftUI for macOS\n\n## Installation\nOpen XCode, **File** -\u003e **Add Package Denpendencies** -\u003e Search `https://github.com/boybeak/SwiftUIWindow.git` -\u003e **Add Package**.\n\n## Usage\n```swift\nimport SwiftUIWindow\n\nstruct ContentView : View {\n\n    var body: some View {\n        Button(\n            action: {\n                openWindow()\n            }\n        ) {\n            Text(\"Open Window\")\n        }\n    }\n    \n    func openWindow() {\n        let window = openSwiftUIWindow { win in\n            ZStack {\n                Button(\n                    action: {\n                        win.close()\n                    }\n                ) {\n                    Text(\"Close Window\")\n                }\n            }\n            .frame(width: 256, height: 256)\n        }\n        \n        // You can config window here\n        window.center()\n        window.title = \"Demo window\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fswiftuiwindow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboybeak%2Fswiftuiwindow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboybeak%2Fswiftuiwindow/lists"}