All Projects → KimDarren → Alternativeicon Example

KimDarren / Alternativeicon Example

Licence: mit
😱 Change your iOS application's icon programmatically since iOS 10.3

Programming Languages

swift
15916 projects

Labels

Projects that are alternatives of or similar to Alternativeicon Example

Objcxx
Stars: ✭ 54 (-58.14%)
Mutual labels:  cocoa
Openquickly
A custom 'open quickly' window that imitates macOS' Spotlight
Stars: ✭ 78 (-39.53%)
Mutual labels:  cocoa
Articles Zh Hans
Articles for NSHipster.cn
Stars: ✭ 113 (-12.4%)
Mutual labels:  cocoa
Cocoaopengl Swift
A simple example of using Swift to create an OpenGL application for macOS, iOS, and tvOS.
Stars: ✭ 60 (-53.49%)
Mutual labels:  cocoa
Subethaedit
General purpose plain text editor for macOS. Widely known for its live collaboration feature.
Stars: ✭ 1,183 (+817.05%)
Mutual labels:  cocoa
Swiftyattributes
A Swifty API for attributed strings
Stars: ✭ 1,303 (+910.08%)
Mutual labels:  cocoa
Enlighten
💡 An integrated spotlight-based onboarding and help library for macOS, written in Swift.
Stars: ✭ 44 (-65.89%)
Mutual labels:  cocoa
Luexpandabletableview
A subclass of UITableView with expandable and collapsible sections
Stars: ✭ 125 (-3.1%)
Mutual labels:  cocoa
Macdown
Open source Markdown editor for macOS.
Stars: ✭ 8,855 (+6764.34%)
Mutual labels:  cocoa
Sbplayerclient
支持全格式的mac版视频播放器
Stars: ✭ 110 (-14.73%)
Mutual labels:  cocoa
Articles
Articles for NSHipster.com
Stars: ✭ 1,166 (+803.88%)
Mutual labels:  cocoa
Macqq
mac版QQ,swift,macOS,仿QQ mac端
Stars: ✭ 72 (-44.19%)
Mutual labels:  cocoa
Dogetv macos
🎬 dogeTV for macOS
Stars: ✭ 92 (-28.68%)
Mutual labels:  cocoa
Luautocompleteview
Highly configurable autocomplete view that is attachable to any UITextField
Stars: ✭ 55 (-57.36%)
Mutual labels:  cocoa
Macassistant
Google Assistant for macOS!
Stars: ✭ 1,564 (+1112.4%)
Mutual labels:  cocoa
Ikeysnail
iKeySnail provides fully-configurable hardware keyboard functionalities for web browsing on iOS (iPadOS)
Stars: ✭ 48 (-62.79%)
Mutual labels:  cocoa
Xuikit
📦 XUIKIt is a UI framework for macOS, it extends a lot of methods similar to UIKit.
Stars: ✭ 90 (-30.23%)
Mutual labels:  cocoa
Daterangepicker
The best (?) date range picker control for OS X.
Stars: ✭ 126 (-2.33%)
Mutual labels:  cocoa
Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+1281.4%)
Mutual labels:  cocoa
Feeds For Ios Developer
A list of rss feeds for iOS developers
Stars: ✭ 100 (-22.48%)
Mutual labels:  cocoa

AlternativeIcon

Since iOS 10.3, it is possible to change the application's icon programmatically. This repository contains simple application demo it.

Screenshot

Demo

Requirements

  • Xcode 8.3 or higher.
  • iOS 10.3 or higher.

How to build.

  1. Install cocoapods (if needed) .
  2. Clone this project.
  3. Redirect to /Project directory.
  4. pod install.
  5. Open AlternativeIconExample.xcworkspace with Xcode.
  6. Build and run on your device or simulator.

Alternate icon, step by step

  • Import your alternative icon files to project file.

    • IMPORTANT I don't know why, but it doesn't support .xcassets.
  • Open your project's Info.plist file.

     <key>CFBundleIcons</key>
     	<dict>
     		<key>CFBundleAlternateIcons</key>
     		<dict>
     			<key>{alternate-icon-key}</key>
     			<dict>
     				<key>CFBundleIconFiles</key>
     				<array>
     					<string>{alternate-icon-file-name}</string>
     				</array>
     				<key>UIPrerenderedIcon</key>
     				<false/>
     			</dict>
     		</dict>
     		<key>CFBundlePrimaryIcon</key>
     		<dict>
     			<key>CFBundleIconFiles</key>
     			<array>
     				<string>{primary-icon-file-name}</string>
     			</array>
     			<key>UIPrerenderedIcon</key>
     			<false/>
     		</dict>
     	</dict>
    
  • Write some code to set alternative icon.

     UIApplication.shared.setAlternateIconName("alternative-icon-key") { error in
     	// Handle error or do something.
     }
    

Before submit to App Store.

  • The icon must to be user-choosable.
  • The icon must to be related to your app.
  • Click here to show more details.

Used libraries.

License

AlternativeIcon-Example is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].