You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because [UIApplication sharedApplication] is not accessible in app extensions.
The common way of solving this is adding a macro "APP_EXTENSION=1" for the app extension target and checking for it.
It seems you only use it for status bar purposes. You should know that status bar behaves really weird in app extensions (inherit parent app behavior, NOT customizable), so not trying to define/style it if in an app extension would work.
The text was updated successfully, but these errors were encountered:
Because
[UIApplication sharedApplication]
is not accessible in app extensions.The common way of solving this is adding a macro "APP_EXTENSION=1" for the app extension target and checking for it.
It seems you only use it for status bar purposes. You should know that status bar behaves really weird in app extensions (inherit parent app behavior, NOT customizable), so not trying to define/style it if in an app extension would work.
The text was updated successfully, but these errors were encountered: