Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ UIWindowScene warning message #64

Open
abdulla-allaith opened this issue Jun 15, 2020 · 2 comments
Open

⚠️ UIWindowScene warning message #64

abdulla-allaith opened this issue Jun 15, 2020 · 2 comments

Comments

@abdulla-allaith
Copy link

There's a constant warning showing in Xcode:
WARNING: 'UIWindowScene' is only available on iOS 13.0 or newer.
in LiveChat-Swift.h file
in 2 functions:
+ (UIWindowScene * _Nullable)windowScene SWIFT_WARN_UNUSED_RESULT;
+ (void)setWindowScene:(UIWindowScene * _Nullable)value;

Possibly might be fixed by surrounding the block of code with @available 13.0 check, and use alternative code for devices with iOS < 13.0

@kamil-szostakowski
Copy link
Contributor

@abdulla-allaith thanks for pointing this out. All the usages of UIWindowScene in the widget are annotated with @available. It looks like Xcode also generates setter and getter for this static property which doesn't inherit this annotation and it causes a warning. We will try to address this issue in the next planned release.

@abdulla-allaith
Copy link
Author

Any update on this issue? There has been 5+ releases since this issue, none of them fixes this annoying warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants