chat-window-ios icon indicating copy to clipboard operation
chat-window-ios copied to clipboard

⚠️ UIWindowScene warning message

Open abdulla-allaith opened this issue 5 years ago • 2 comments

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

abdulla-allaith avatar Jun 15 '20 09:06 abdulla-allaith

@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.

kamil-szostakowski avatar Jul 21 '20 09:07 kamil-szostakowski

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

abdulla-allaith avatar May 11 '21 19:05 abdulla-allaith