At https://developer.apple.com/ios/human-interface-guidelines/graphics/system-icons/ there are some great βquick steps.β
Is it possible to make UIImage from one of these UIApplicationShortcutIcon to use, say, a UIButton . For example, the mail icon:
UIImage
UIApplicationShortcutIcon
UIButton
let mailIcon = UIApplicationShortcutIcon(type: .mail) let mailImage = UIImage( ... )
Any help would be greatly appreciated. Thanks.
You cannot use Quick Action Icons as a regular image, or you cannot set a button image. This is only for hotkeys for 3D touch. When you click on the application icon and displays a context menu for quick action. You can use these icons here. Even this allows us to use our images as shortcuts.
Quick Action Icons
You can also link to URLs as a link:
These images are not available using the regular API, but they are part of the UIKit package. You can use a tool like iOS-Artwork-Extractor to extract 1x, 2x and 3x variants of these images, and then you can add them to your project.
Source: https://habr.com/ru/post/1265906/More articles:Split everything to a specific template - javaIs pooling in akka-http using the original queue Implementation thread safe? - scalaHow to iterate a map in java? - javaC # Authentication failed because the remote side has closed the transport stream - authenticationCannot find image API system Android 27.0-8.1 (Oreo) 26-27 ARM - androidConvert proto buffer to ProtoRPC - pythonMatplotlib how to change figsize for matshow - pythonAzure Service Bus - Round Robin Theme for Multiple Services - c #How to quickly add html attributes and values ββfor all lines using vim and plugins? - htmlHow to add custom images like UIApplicationShortcutIcon for UIApplicationShortcutItem? - iosAll Articles