{"id":28345070,"url":"https://github.com/1998code/alternativeappicons","last_synced_at":"2026-07-15T03:32:38.553Z","repository":{"id":53938453,"uuid":"521947393","full_name":"1998code/AlternativeAppIcons","owner":"1998code","description":"Let users choose app icons with SwiftUI on Apple OS 26","archived":false,"fork":false,"pushed_at":"2025-07-27T08:48:19.000Z","size":2361,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T22:02:38.515Z","etag":null,"topics":["app","icon","ios","logo","macos"],"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/1998code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"1998code"}},"created_at":"2022-08-06T12:59:08.000Z","updated_at":"2025-08-17T10:37:17.000Z","dependencies_parsed_at":"2025-07-12T11:31:49.039Z","dependency_job_id":"ef8591c4-1c05-4afd-9f46-3a1f387adff3","html_url":"https://github.com/1998code/AlternativeAppIcons","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/1998code/AlternativeAppIcons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAlternativeAppIcons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAlternativeAppIcons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAlternativeAppIcons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAlternativeAppIcons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1998code","download_url":"https://codeload.github.com/1998code/AlternativeAppIcons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAlternativeAppIcons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35489566,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"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":["app","icon","ios","logo","macos"],"created_at":"2025-05-27T11:09:11.478Z","updated_at":"2026-07-15T03:32:38.548Z","avatar_url":"https://github.com/1998code.png","language":"Swift","funding_links":["https://github.com/sponsors/1998code"],"categories":[],"sub_categories":[],"readme":"# AlternativeAppIcons\nCross-platform SwiftUI app that lets users choose alternative app icons on iOS and macOS\n\n\u003cimg width=\"781\" height=\"562\" alt=\"Screenshot 2025-07-12 at 5 26 49 PM\" src=\"https://github.com/user-attachments/assets/90942d82-0a35-4ba5-99bc-bcd8a8a08bfd\" /\u003e\n\n## Features\n\n### iOS / iPadOS\n- ✅ Full alternative app icon support\n- ✅ Permanent icon changes that persist between app launches\n- ✅ Wheel picker interface\n- ✅ Built-in system support via `UIApplication.setAlternateIconName()`\n\n### macOS\n- ✅ Temporary dock icon changes while app is running\n- ✅ Menu picker interface (platform-appropriate)\n- ✅ **Drag and drop custom icon support**\n- ✅ **Custom icon upload with PNG, JPG, JPEG, SVG support**\n- ✅ **Automatic image resizing to app icon dimensions**\n- ✅ Icon preview functionality\n- ✅ User feedback with clear explanations\n\n## Platform Support\n- **iOS / iPadOS 16+** - Full alternate app icon functionality\n- **macOS 11.5+** - Temporary dock icon changes with custom icon support\n- **Xcode 14+** - Development environment\n\n![swiftui-128x128_2x](https://user-images.githubusercontent.com/54872601/183251609-f30ad0e8-6fc5-48e1-bb69-47298597c7d3.png)\n\n## How It Works\n\n### iOS / iPadOS Implementation\nUses the native `UIApplication.shared.setAlternateIconName()` API to permanently change the app icon. The changes persist between app launches and are fully supported by the iOS system.\n\n### macOS Implementation\nChanges the dock icon temporarily using `NSApplication.shared.applicationIconImage`. While macOS doesn't have built-in alternate app icon support like iOS, this provides a visual demonstration of the different icon options.\n\n**New: Custom Icon Support**\n- Select \"Custom\" from the picker to enable drag and drop\n- Drag image files (PNG, JPG, JPEG, SVG) onto the drop zone\n- Images are automatically resized to 1024x1024 (standard app icon size)\n- Custom icons are applied immediately to the dock\n\n## Setup Instructions\n\n### 1. Icon Assets\nThe project includes two app icon sets:\n- `AppIcon` - Default icon (Lando character)\n- `AppIcon 2` - Alternative icon \n\nFor macOS support, the icons are also configured as individual image assets that can be accessed by name at runtime.\n\n### 2. iOS Configuration\nAdd your alternative app icons to the `CFBundleIcons` key in your Info.plist:\n\n```xml\n\u003ckey\u003eCFBundleIcons\u003c/key\u003e\n\u003cdict\u003e\n    \u003ckey\u003eCFBundleAlternateIcons\u003c/key\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eAppIcon 2\u003c/key\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eCFBundleIconFiles\u003c/key\u003e\n            \u003carray\u003e\n                \u003cstring\u003eAppIcon 2\u003c/string\u003e\n            \u003c/array\u003e\n        \u003c/dict\u003e\n    \u003c/dict\u003e\n\u003c/dict\u003e\n```\n\n### 3. macOS Configuration\nEnsure your alternative icons are available as named image assets in your Asset Catalog so they can be loaded with `NSImage(named:)`.\n\n**New: Custom Icon Support**\n- No additional configuration required for custom icon support\n- The app automatically handles image loading, validation, and resizing\n- Supports PNG, JPG, JPEG, and SVG file formats\n- Images are automatically resized to 1024x1024 pixels\n\n## Key Features\n\n- **Cross-Platform Compatibility**: Works on both iOS and macOS with platform-appropriate UI\n- **Visual Feedback**: Shows preview of selected icon and confirmation alerts\n- **Conditional Compilation**: Uses `#if os()` directives for platform-specific code\n- **Error Handling**: Proper error handling with user-friendly messages\n- **Persistent Settings**: Uses `@AppStorage` to remember user's icon choice\n- **Custom Icon Support**: Drag and drop functionality for macOS with automatic image processing\n- **Smart UI**: Only shows relevant UI elements when they're meaningful\n\n![CleanShot 2022-08-06 at 21 43 56](https://user-images.githubusercontent.com/54872601/183252312-fb8ba89c-edf5-45a4-b1f6-c094c4b38063.gif)\n\n## Tutorial\nMedium article: https://bit.ly/3A3M5Bs\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Falternativeappicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1998code%2Falternativeappicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Falternativeappicons/lists"}