Closed nab0y4enko closed 5 years ago
Thanks for the nice patch. I just merged it. Sorry for the late review too!
To remain fully compatible with target/action expected in a normal app (e.g. nil target or optional sender argument), I reverted to UIApplication.sendAction(to:from:for:)
as the default solution.
For app extensions as explained in the README, the framework must now be built with -DAPP_EXTENSION as a Swift flag. In this case, perform()
is going to be used to send the action.
UIApplication.shared
can not be used in Share Extension