Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 6469866

Browse files
committed
fix: getter is deprecated
1 parent 472abdd commit 6469866

File tree

1 file changed

+2
-3
lines changed
  • packages/nativescript-sdk/src/nativescript/popup

1 file changed

+2
-3
lines changed

Diff for: packages/nativescript-sdk/src/nativescript/popup/popup.ios.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { EventEmitter } from 'events';
2+
import { AppURL, handleOpenURL } from 'nativescript-urlhandler';
23
import { Color } from 'tns-core-modules/color';
3-
import { handleOpenURL, AppURL } from 'nativescript-urlhandler';
4-
import { ios } from "tns-core-modules/utils/utils";
54

65
const LOADED_EVENT = 'loaded';
76
const CLOSED_EVENT = 'closed';
@@ -81,7 +80,7 @@ export class Popup extends EventEmitter {
8180
});
8281

8382
// Show the view controller
84-
const app = ios.getter(UIApplication, UIApplication.sharedApplication);
83+
const app = UIApplication.sharedApplication;
8584
this._viewController = app.keyWindow.rootViewController;
8685

8786
// Get the topmost view controller

0 commit comments

Comments
 (0)