Adding an icon or image to a UIPreviewAction

I wonder if there is a way to add an icon to quick actions related to peek and pop view (accessible via 3D touch).

I have created a couple of preliminary activities using:

UIPreviewAction(title: "Save".localized, style: .Default)

      

but I can't seem to find a way to add any type of icon or image to buttons that makes them clearer.

https://i.stack.imgur.com/qgtE5.png

Example: the second line has an icon (photoshop) as I want it.

+3


source to share





All Articles