Closed tospery closed 3 years ago
Sorry, I didn't really understand the issue... can you provide a more detailed description and if possible an example?
Ah thanks, we'll take a look ASAP :)
Here is a reference https://davedelong.com/blog/2019/04/09/conditional-compilation-part-3/
But we actually need a simpler solution to conditionally not compiling for app extensions, I was looking to see if we can mark the whole show
function as unavailable for app extensions. But still couldn't found how to use or if it is possible to use NS_EXTENSION_UNAVAILABLE_IOS
on Swift.
But to be really honest to me personally, this extension should be changed to take the viewController as a parameter. But not sure if we could do that because it will be an breaking change and I suspect people use this.
@tospery Can you verify if changing the function show
to having the following attribute fixes the issue?
@available(iOSApplicationExtension, unavailable)
func show(...) ...
Fixed on master, feel free to reopen if this still an issue :)
Because SwifterSwift contains UIApplication, so it can't use in Network Extension.Hope to do a compatibility.