Sparr Sparr - 1 year ago 277
iOS Question

Preview action items in swift 3

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.

Answer Source

This is how you should be accessing it henceforth

override var previewActionItems: [UIPreviewActionItem] {
    return previewActionItems

Same goes for supportedinterfaceorientations as well

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download