<ul data-eligibleForWebStory="true">On macOS, to set an alternate icon, one can use the NSDockTile API to draw it in code.Mac apps may not have access to the system-wide Icon & widget style settings or the current tint color.Icons can be created using NSImage(named: String) and displayed with an NSImageView.If an icon has variations for light mode, dark mode, or mono version, the mono version is shown.When adding multiple .icon files to a Mac app, Xcode might only include the default icon, ignoring the others..icon files are included in the app as .icns files generated from the .icon files.It is possible to generate .icns files differently and include them as resources in the app.