replaced line 56 of CYRKeyboardButtonView.m
changed from: if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) {
to : if ([UIScreen mainScreen].bounds.size.width > [UIScreen
mainScreen].bounds.size.height) {
When used in an iOS keyboard extension, the original line causes an error on compiling:
'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
The new line still checks if the orientation is landscape, but sharedApplication is not used and compiles with no errors.
replaced line 56 of CYRKeyboardButtonView.m changed from: if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) { to : if ([UIScreen mainScreen].bounds.size.width > [UIScreen mainScreen].bounds.size.height) {
When used in an iOS keyboard extension, the original line causes an error on compiling: 'sharedApplication' is unavailable: not available on iOS (App Extension) - Use view controller based solutions where appropriate instead.
The new line still checks if the orientation is landscape, but sharedApplication is not used and compiles with no errors.