Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

Commit 391559f

Browse files
committed
fix(iOS): crash on iOS 64-bit architecture
1 parent 4f6dc74 commit 391559f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin.ios.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class PDFView extends common.PDFView {
3737
}
3838

3939
private init() {
40-
this.ios = new UIWebView(CGRectInfinite);
40+
this.ios = new UIWebView(UIScreen.mainScreen().bounds);
4141

4242
this.ios.autoresizingMask =
4343
UIViewAutoresizing.UIViewAutoresizingFlexibleWidth |

0 commit comments

Comments
 (0)