()
| 4 | private _screen: UIScreen; |
| 5 | |
| 6 | private get screen(): UIScreen { |
| 7 | if (!this._screen) { |
| 8 | // NOTE: may not want to cache this value with SwiftUI app lifecycle based apps (using NativeScriptViewFactory) given the potential of multiple scenes |
| 9 | const window = getWindow() as UIWindow; |
| 10 | this._screen = window ? window.screen : UIScreen.mainScreen; |
| 11 | } |
| 12 | |
| 13 | return this._screen; |
| 14 | } |
| 15 | |
| 16 | get widthPixels(): number { |
| 17 | return this.widthDIPs * this.scale; |
nothing calls this directly
no test coverage detected