Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preview action items in swift 3

Tags:

ios

swift

3dtouch

How do i assign preview action items in swift 3? The function doesn't seem to be there and the property is get only

I've hit the same issue when i try to input the supportedinterfaceorientations

Is there something that I've missed?

I've tried this on Xcode 8.

like image 995
Sparr Avatar asked Feb 07 '23 09:02

Sparr


1 Answers

This is how you should be accessing it henceforth

override var previewActionItems: [UIPreviewActionItem] {
    return previewActionItems
}

Same goes for supportedinterfaceorientations as well

like image 86
Sparr Avatar answered Feb 09 '23 00:02

Sparr