I am trying to use FolioReaderKit in my app extensions that I am using for Siri. It is showing me an error "'shared' is unavailable: Use view controller based solutions where appropriate instead.". I have read the apple document and it says that
Some APIs Are Unavailable to App Extensions.
So as we can't use shared objects in app extensions, this is the code that is creating the problem:
UIApplication.shared.sendAction(#selector(mik_findFirstResponder(_:)), to: nil, from: nil, for: nil)
How can I resolve this?