Skip to content

Commit

Permalink
Add delay
Browse files Browse the repository at this point in the history
Testing if fixes the UI issue on iOS 18
See:
crazecoder#309
javaherisaber#18
  • Loading branch information
zbarbuto authored Oct 23, 2024
1 parent eb92075 commit 6d56ddc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions open_file_ios/ios/Classes/OpenFilePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
[self openFileWithUIActivityViewController:fileURL];
}else{
BOOL previewSucceeded = [_documentController presentPreviewAnimated:YES];
if (@available(iOS 18.0, *)) {
sleep(1);
}
if(!previewSucceeded){
// [_documentController presentOpenInMenuFromRect:CGRectMake(500,20,100,100) inView:[UIApplication sharedApplication].delegate.window.rootViewController.view animated:YES];

Expand Down

0 comments on commit 6d56ddc

Please sign in to comment.