ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
41 stars 39 forks source link

How do I use your plugin with iOS < 14.0? #50

Closed kostasoft closed 1 year ago

kostasoft commented 1 year ago

How do I use your plugin with iOS < 14.0? I get an error when I compile a project with minimum version 11.0:

Swift Compiler Error (Xcode): 'ShareHandlerIosViewController' is only available 
in application extensions for iOS 14.0 or newer
/Users/kostasoft/Desktop/woxtel/ios/Share%20Extension/ShareViewController.swift:5:27

Let the functionality of the plugin be unavailable, but that the project at least can be compiled and run the application.

kostasoft commented 1 year ago

I'm trying to do this, but it doesn't work:

Снимок экрана 2023-03-04 в 16 54 34
kostasoft commented 1 year ago

I left only the last two lines (see screenshot above), I deleted the rest. Everything compiled and worked.