{"id":15170549,"url":"https://github.com/artlasovsky/toggle-macos-dock-icon","last_synced_at":"2025-04-09T01:31:28.530Z","repository":{"id":254725489,"uuid":"847367209","full_name":"artlasovsky/toggle-macos-dock-icon","owner":"artlasovsky","description":"This SwiftUI app demonstrates how to dynamically toggle the visibility of the dock icon in macOS.","archived":false,"fork":false,"pushed_at":"2024-08-25T17:22:13.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T20:36:49.580Z","etag":null,"topics":["activationpolicy","appkit","dock","dock-icon","icon","macos","swiftui"],"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/artlasovsky.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-08-25T16:16:34.000Z","updated_at":"2025-02-10T02:46:19.000Z","dependencies_parsed_at":"2024-08-25T17:50:11.540Z","dependency_job_id":null,"html_url":"https://github.com/artlasovsky/toggle-macos-dock-icon","commit_stats":null,"previous_names":["artlasovsky/toggle-macos-dock-icon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artlasovsky%2Ftoggle-macos-dock-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artlasovsky%2Ftoggle-macos-dock-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artlasovsky%2Ftoggle-macos-dock-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artlasovsky%2Ftoggle-macos-dock-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artlasovsky","download_url":"https://codeload.github.com/artlasovsky/toggle-macos-dock-icon/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247956527,"owners_count":21024565,"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":["activationpolicy","appkit","dock","dock-icon","icon","macos","swiftui"],"created_at":"2024-09-27T08:04:00.200Z","updated_at":"2025-04-09T01:31:28.260Z","avatar_url":"https://github.com/artlasovsky.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Toggle Dock Icon App\n\n## Overview\nThis SwiftUI app demonstrates how to dynamically toggle the visibility of the dock icon in macOS.\n\n## Features\n- Toggle dock icon visibility\n- Persist app window even when dock icon is hidden\n\n## Important\nDo not forget to add `Application is agent (UIElement)` property with value `YES` to `Info.plist`\n\n## Note\nWhen running the app in debug mode, Xcode windows will take precedence over the app's windows.\nAs a result, even after calling NSApp.activate() or NSWindow.makeKeyAndOrderFront(), the app's windows will remain behind the Xcode windows.\n\nHowever, this issue only occurs when Xcode is the active application behind our app.\nIf a different application is in the background, the app's windows will behave as expected.\n\n## Usage\n- Use \"Hide/Show Dock Icon\" button to toggle dock icon visibility\n- Try to use Option + B shortcut to increment the counter, to make sure that window still handle keyboard events\n\n\n## Demo Video\nhttps://github.com/user-attachments/assets/8f513a66-45e1-440c-8a0a-ac6bd3e1efaf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartlasovsky%2Ftoggle-macos-dock-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartlasovsky%2Ftoggle-macos-dock-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartlasovsky%2Ftoggle-macos-dock-icon/lists"}