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
arrays ios swift 3dtouch


source to share


No one has answered this question yet

Check out similar questions:

868
Xcode error "Could not find developer disk image"
4
UITableViewRowAction with icon and text
2
How to work with 3D Touch "Fast Switch" absorbing touch events?
2
iOS - Simulate blur and zoom effect before peeking
0
What is the correct UI benchmark for an Action button in an iOS app in a UITableView in a row?
0
Badge design and jagged edges
0
Peek and Pop - disallow controller preview
0
Copy iOS 3D Notifications UI in App
0
Why is the destructive title UIPreviewActionStyle not red?
0
Add an icon or image to Quick View



All Articles
Loading...
X
Show
Funny
Dev
Pics