Commit 48b62dea by Faiyyaz S Committed by GitHub

Fixed Toast message shown below the keyboard if open or other views (#203)

parent 2fa45049
......@@ -94,12 +94,7 @@ static NSString *const CHANNEL_NAME = @"PonnamKarthik/fluttertoast";
#pragma mark - read the key window
- (UIWindow *)_readKeyWindow {
for (UIWindow *window in UIApplication.sharedApplication.windows) {
if ([window isKindOfClass:UIWindow.class] && window.isKeyWindow && window.windowLevel == UIWindowLevelNormal) {
return window;
}
}
return nil;
return [[UIApplication sharedApplication].windows lastObject];
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment