{"id":16283529,"url":"https://github.com/tezpark/alternateiconname-objc","last_synced_at":"2025-09-08T06:30:51.660Z","repository":{"id":96004911,"uuid":"86434896","full_name":"tezpark/AlternateIconName-objC","owner":"tezpark","description":"AlternateIconName example for objective-C","archived":false,"fork":false,"pushed_at":"2017-05-08T01:52:37.000Z","size":1728,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-29T14:51:55.669Z","etag":null,"topics":["alternate","alternateappicon","alternateiconname","appicon","ios","objc","objective-c"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/tezpark.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":"2017-03-28T08:31:30.000Z","updated_at":"2020-07-15T01:14:45.000Z","dependencies_parsed_at":"2023-03-29T00:17:16.481Z","dependency_job_id":null,"html_url":"https://github.com/tezpark/AlternateIconName-objC","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tezpark%2FAlternateIconName-objC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tezpark%2FAlternateIconName-objC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tezpark%2FAlternateIconName-objC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tezpark%2FAlternateIconName-objC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tezpark","download_url":"https://codeload.github.com/tezpark/AlternateIconName-objC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232282927,"owners_count":18499332,"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":["alternate","alternateappicon","alternateiconname","appicon","ios","objc","objective-c"],"created_at":"2024-10-10T19:13:40.970Z","updated_at":"2025-01-03T03:15:35.014Z","avatar_url":"https://github.com/tezpark.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)]()\n[![GitHub version](https://img.shields.io/badge/version-iOS%20%20(%3E%3D10.3)-brightgreen.svg)]()\n[![GitHub language](https://img.shields.io/badge/language-objective--c-6BAEE4.svg)]()\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/tezpark/AlternateIconName-objC/master/LICENSE)\n\n# AlternateIconName-objC\nAlternateIconName for objective-C\n\n\n# Info\nIn iOS 10.3, the function to change app icons has been added, which allows you to change the icon without updating the app.\n\n![32b5f3c3c54af67507dbaeff58ab43fe](https://cloud.githubusercontent.com/assets/389004/24396460/3db354da-13de-11e7-8d77-e378361476ad.gif)\n\n\n# How to add\n## In Project\n* minimum target version : iOS 10.3\n* Add the alternate icons onto project\n  * I haven't found a way to use Assets yet\n* Add CFBundleIcons parameter in app’s Info.plist file\n  * reference : [Apple API Reference](https://developer.apple.com/reference/uikit/uiapplication/2806818-setalternateiconname?language=objc)\n\n```objective-c\n// Info.plist\n...\n\u003ckey\u003eCFBundleIcons\u003c/key\u003e\n\u003cdict\u003e\n    \u003ckey\u003eCFBundleAlternateIcons\u003c/key\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eicon_type_1\u003c/key\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eCFBundleIconFiles\u003c/key\u003e\n            \u003carray\u003e\n                \u003cstring\u003eicon1\u003c/string\u003e  // \u003c- added the alternate icon name\n            \u003c/array\u003e\n            \u003ckey\u003eUIPrerenderedIcon\u003c/key\u003e\n            \u003cfalse/\u003e\n        \u003c/dict\u003e\n        \u003ckey\u003eicon_type_2\u003c/key\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eCFBundleIconFiles\u003c/key\u003e\n            \u003carray\u003e\n                \u003cstring\u003eicon2\u003c/string\u003e\n            \u003c/array\u003e\n            \u003ckey\u003eUIPrerenderedIcon\u003c/key\u003e\n            \u003cfalse/\u003e\n        \u003c/dict\u003e\n        \u003ckey\u003eicon_type_3\u003c/key\u003e\n        \u003cdict\u003e\n            \u003ckey\u003eCFBundleIconFiles\u003c/key\u003e\n            \u003carray\u003e\n                \u003cstring\u003eicon3\u003c/string\u003e\n            \u003c/array\u003e\n            \u003ckey\u003eUIPrerenderedIcon\u003c/key\u003e\n            \u003cfalse/\u003e\n        \u003c/dict\u003e\n    \u003c/dict\u003e\n    \u003ckey\u003eCFBundlePrimaryIcon\u003c/key\u003e\n    \u003cdict\u003e\n        \u003ckey\u003eCFBundleIconFiles\u003c/key\u003e\n        \u003carray\u003e\n            \u003cstring\u003eAppIcon60x60\u003c/string\u003e // \u003c- Assets AppIcon\n        \u003c/array\u003e\n    \u003c/dict\u003e\n\u003c/dict\u003e\n...\n```\n\n## In Code\n* Setting the alertnate Icon\n\n```objective-c\nif ([[UIApplication sharedApplication] supportsAlternateIcons] == NO)\n        return;\n    \n[[UIApplication sharedApplication] setAlternateIconName:@\"icon_type_1\" //AlternateIcons key name\n                                      completionHandler:^(NSError * _Nullable error) {\n                                          NSLog(@\"%@\", [error description]);\n                                      }];\n```\n\n* Reset to the primary icon\n\n```objective-c\nif ([[UIApplication sharedApplication] supportsAlternateIcons] == NO)\n        return;\n\n[[UIApplication sharedApplication] setAlternateIconName:nil\n                                      completionHandler:^(NSError * _Nullable error) {\n                                          NSLog(@\"%@\", [error description]);\n                                      }];\n```\n\n\n\n\n# License\nMIT License\n\nCopyright (c) 2017 Tez Park\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftezpark%2Falternateiconname-objc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftezpark%2Falternateiconname-objc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftezpark%2Falternateiconname-objc/lists"}