{"id":14069831,"url":"https://github.com/pawello2222/AppIconGenerator","last_synced_at":"2025-07-30T06:33:02.065Z","repository":{"id":119172553,"uuid":"304157022","full_name":"pawello2222/AppIconGenerator","owner":"pawello2222","description":"A library for creating App Icons from SwiftUI views.","archived":false,"fork":false,"pushed_at":"2024-05-15T12:29:55.000Z","size":273,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-29T23:16:11.481Z","etag":null,"topics":["appicon","appicons","appstore","icons","ios","ios16","ios17","macos","swift","swift-package","swift-package-manager","swiftui"],"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/pawello2222.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-10-14T23:12:53.000Z","updated_at":"2025-06-15T16:38:06.000Z","dependencies_parsed_at":"2024-05-13T23:28:07.949Z","dependency_job_id":"4216950f-009e-43ca-a67b-4af51e1ee5ca","html_url":"https://github.com/pawello2222/AppIconGenerator","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pawello2222/AppIconGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawello2222%2FAppIconGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawello2222%2FAppIconGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawello2222%2FAppIconGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawello2222%2FAppIconGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pawello2222","download_url":"https://codeload.github.com/pawello2222/AppIconGenerator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pawello2222%2FAppIconGenerator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267822893,"owners_count":24149716,"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-07-30T02:00:09.044Z","response_time":70,"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":["appicon","appicons","appstore","icons","ios","ios16","ios17","macos","swift","swift-package","swift-package-manager","swiftui"],"created_at":"2024-08-13T07:07:16.632Z","updated_at":"2025-07-30T06:33:01.765Z","avatar_url":"https://github.com/pawello2222.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./.resources/Assets/logo.png\" alt=\"App Icon Generator logo\" height=150\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator/actions?query=branch%3Amain\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/pawello2222/AppIconGenerator/ci.yml?logo=github\" alt=\"Build\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator\"\u003e\u003cimg src=\"https://img.shields.io/badge/language-swift-orange.svg\" alt=\"Language\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator#installation\"\u003e\u003cimg src=\"https://img.shields.io/badge/platform-iOS%20%7C%20macOS-lightgrey.svg\" alt=\"Supported platforms\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator#installation\"\u003e\u003cimg src=\"https://img.shields.io/badge/SPM-compatible-brightgreen.svg\" alt=\"Swift Package Manager\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/pawello2222/AppIconGenerator\" alt=\"Release version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/pawello2222/AppIconGenerator/blob/main/LICENSE.md\"\u003e\u003cimg src=\"https://img.shields.io/github/license/pawello2222/AppIconGenerator\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# App Icon Generator\n\nA library for creating App Icons from SwiftUI views.\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cb\u003eTable of Contents\u003c/b\u003e\n  \u003c/summary\u003e\n\n  1. [Installation](#installation)\n  2. [Highlights](#highlights)\n  3. [Icon sets](#iconsets)\n  4. [Demo](#demo)\n  5. [License](#license)\n\n\u003c/details\u003e\n\n## Installation \u003ca name=\"installation\"\u003e\u003c/a\u003e\n\n### Requirements\n* iOS 16.0+\n* macOS 13.0+\n\n### Swift Package Manager\n\nApp Icon Generator is available as a Swift Package.\n\n```swift\n.package(url: \"https://github.com/pawello2222/AppIconGenerator.git\", .upToNextMajor(from: \"1.0.0\"))\n```\n\n## Highlights \u003ca name=\"highlights\"\u003e\u003c/a\u003e\n\nGenerate icons using `AppIconGenerator`\n\n```swift\nAppIconGenerator {\n    IconView()\n}\n.generateIcons(for: .iOS)\n```\n\nor directly from within a SwiftUI block\n\n```swift\nIconView()\n    .generateIcons(for: .iOS)\n```\n\n### Output\n\nGenerated icons will be saved in the documents directory (the full path will be logged to the console):\n\n- iOS\n\n\u003e Icon saved to: /Users/.../Library/Developer/CoreSimulator/.../Documents/AppIconGenerator/Icon/Icon-1024.png\n\n- macOS\n\n\u003e Icon saved to: /Users/.../Documents/AppIconGenerator/Icon/Icon-1024.png\n\n## Icon sets \u003ca name=\"iconsets\"\u003e\u003c/a\u003e\n\n```swift\nextension IconSet {\n    public var sizes: [CGFloat] {\n        switch self {\n        case .iOS:\n            return [40, 58, 60, 76, 80, 87, 114, 120, 128, 136, 152, 167, 180, 192, 1024]\n        case .macOS:\n            return [16, 32, 64, 128, 256, 512, 1024]\n        case .watchOS:\n            return [44, 48, 55, 58, 60, 64, 66, 80, 87, 88, 92, 100, 102, 108, 172, 196, 216, 234, 258, 1024]\n        case .single:\n            return [1024]\n        case .custom(let sizes):\n            return sizes\n        }\n    }\n}\n```\n\n## Demo \u003ca name=\"demo\"\u003e\u003c/a\u003e\n\n```swift\nimport AppIconGenerator\nimport SwiftUI\n\nstruct ContentView: View {\n    var body: some View {\n        IconView()\n            .generateIcons(for: .iOS, name: \"MyIcon\")\n    }\n}\n\nstruct IconView: View {\n    var body: some View {\n        GeometryReader { geometry in\n            ZStack {\n                Color.blue\n                Circle()\n                    .fill(Color.red)\n                    .frame(\n                        width: geometry.size.width / 2,\n                        height: geometry.size.height / 2\n                    )\n            }\n        }\n    }\n}\n```\n\n## License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nApp Icon Generator is available under the MIT license. See the [LICENSE](./LICENSE.md) file for more info.\n","funding_links":[],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawello2222%2FAppIconGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpawello2222%2FAppIconGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpawello2222%2FAppIconGenerator/lists"}