@nstudio/nativescript-compiler 9.2.0-alpha.17 → 9.2.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/README.md +3 -0
  2. package/config.js +1 -0
  3. package/dist/kotlin/access.js +8 -7
  4. package/dist/kotlin/arguments.js +6 -0
  5. package/dist/kotlin/assignment.js +22 -13
  6. package/dist/kotlin/builtins.js +67 -0
  7. package/dist/kotlin/calls.js +3 -2
  8. package/dist/kotlin/class-declaration.js +4 -9
  9. package/dist/kotlin/class-methods.js +2 -2
  10. package/dist/kotlin/core-api.js +1 -1
  11. package/dist/kotlin/declarations.js +1 -1
  12. package/dist/kotlin/expression-statements.js +13 -1
  13. package/dist/kotlin/functions.js +1 -0
  14. package/dist/kotlin/literals.js +4 -8
  15. package/dist/kotlin/names.js +4 -4
  16. package/dist/kotlin/native/api.js +1 -1
  17. package/dist/kotlin/operators.js +25 -25
  18. package/dist/kotlin/optional-chains.js +1 -1
  19. package/dist/kotlin/overrides.js +3 -3
  20. package/dist/kotlin/state-backend.js +6 -2
  21. package/dist/kotlin/translator.js +1 -1
  22. package/dist/kotlin/types.js +4 -4
  23. package/dist/semantics/classes.js +15 -0
  24. package/dist/semantics/conversion.js +9 -1
  25. package/dist/semantics/facts.js +1 -1
  26. package/dist/semantics/lang.js +10 -0
  27. package/dist/semantics/lower.js +54 -0
  28. package/dist/semantics/lowering-methods.js +5 -0
  29. package/dist/semantics/placement.js +9 -3
  30. package/dist/semantics/runtime.js +1 -0
  31. package/dist/semantics/signals.js +11 -0
  32. package/dist/semantics/states/missing.js +7 -0
  33. package/dist/semantics/tdz.js +54 -15
  34. package/dist/semantics/throws.js +2 -2
  35. package/dist/semantics/translator-methods.js +1 -1
  36. package/dist/swift/access.js +7 -9
  37. package/dist/swift/arguments.js +14 -9
  38. package/dist/swift/assignment.js +26 -15
  39. package/dist/swift/calls.js +13 -5
  40. package/dist/swift/class-methods.js +2 -1
  41. package/dist/swift/classes.js +7 -9
  42. package/dist/swift/components.js +3 -3
  43. package/dist/swift/control-flow.js +1 -1
  44. package/dist/swift/conversion.js +5 -2
  45. package/dist/swift/core-api.js +2 -2
  46. package/dist/swift/declarations.js +1 -1
  47. package/dist/swift/expressions.js +6 -2
  48. package/dist/swift/from-any.js +1 -1
  49. package/dist/swift/functions.js +5 -6
  50. package/dist/swift/global-calls.js +1 -1
  51. package/dist/swift/lenient.js +1 -6
  52. package/dist/swift/library.js +2 -2
  53. package/dist/swift/literals.js +8 -3
  54. package/dist/swift/method-values.js +2 -1
  55. package/dist/swift/modules.js +3 -3
  56. package/dist/swift/names.js +7 -7
  57. package/dist/swift/native/calls.js +10 -4
  58. package/dist/swift/object-classes.js +84 -1
  59. package/dist/swift/operators.js +31 -29
  60. package/dist/swift/placement.js +22 -6
  61. package/dist/swift/state-backend.js +3 -2
  62. package/dist/swift/static-calls.js +3 -4
  63. package/dist/swift/syntax.js +10 -6
  64. package/dist/swift/translator.js +1 -1
  65. package/dist/swift/type-facts.js +3 -3
  66. package/dist/swift/types.js +5 -5
  67. package/dist/targets/ios/build.js +1 -1
  68. package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
  69. package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
  70. package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
  71. package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
  72. package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
  73. package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
  74. package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
  75. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
  76. package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
  77. package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
  78. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
  79. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
  80. package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
  81. package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
  82. package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
  83. package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
  84. package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
  85. package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
  86. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
  87. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
  88. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
  89. package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
  90. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
  91. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
  92. package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
  93. package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
  94. package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
  95. package/kit-android/generated/manifest.json +21 -18
  96. package/kit-android/generated/source-lines.json +1 -1
  97. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  98. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +497 -42
  99. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
  100. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +22 -2
  101. package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
  102. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +7 -3
  103. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
  104. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
  105. package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
  106. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
  107. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
  108. package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
  109. package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
  110. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
  111. package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
  112. package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
  113. package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
  114. package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
  115. package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
  116. package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
  117. package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
  118. package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
  119. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +3 -3
  120. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +58 -49
  121. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  122. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
  123. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +67 -52
  124. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  125. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +69 -53
  126. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  127. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +144 -32
  128. package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
  129. package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
  130. package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
  131. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
  132. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
  133. package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
  134. package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
  135. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  136. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  137. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
  138. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  139. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +10 -6
  140. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  141. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1273 -824
  142. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
  143. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +87 -67
  144. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
  145. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  146. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  147. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  148. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
  149. package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
  150. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  151. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  152. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  153. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
  154. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  155. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  156. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  157. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  158. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  159. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  160. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  161. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +204 -190
  162. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  163. package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
  164. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  165. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  166. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  167. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  168. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +17 -12
  169. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
  170. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
  171. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
  172. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
  173. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
  174. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
  175. package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
  176. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  177. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  178. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +3 -4
  179. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  180. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  181. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  182. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  183. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
  184. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  185. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
  186. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
  187. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
  188. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +32 -32
  189. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  190. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  191. package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
  192. package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
  193. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  194. package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
  195. package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
  196. package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
  197. package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
  198. package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
  199. package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
  200. package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +280 -9
  201. package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
  202. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  203. package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +1 -0
  204. package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
  205. package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
  206. package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
  207. package/package.json +6 -4
@@ -29,24 +29,24 @@ import WebKit
29
29
  #sourceLocation()
30
30
  public override var preferredStatusBarStyle: UIStatusBarStyle {
31
31
  let __value: UIStatusBarStyle? = jsReported { () throws -> UIStatusBarStyle in
32
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:367)
32
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:372)
33
33
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
34
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:368)
34
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:373)
35
35
  if jsTruthy(owner?.statusBarStyle as Any?) {
36
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:369)
36
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:374)
37
37
  if Core_utils_constants.SDK_VERSION >= 13 {
38
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:370)
38
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:375)
39
39
  return try
40
40
  (jsStringEquals(jsUnwrap(owner, "statusBarStyle").statusBarStyle, "light")
41
41
  ? UIStatusBarStyle.lightContent : UIStatusBarStyle.darkContent)
42
42
  } else {
43
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:372)
43
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:377)
44
44
  return try
45
45
  (jsStringEquals(jsUnwrap(owner, "statusBarStyle").statusBarStyle, "light")
46
46
  ? UIStatusBarStyle.lightContent : UIStatusBarStyle.default)
47
47
  }
48
48
  }
49
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:375)
49
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:380)
50
50
  return UIStatusBarStyle.default
51
51
  }
52
52
  return __value ?? jsNativeZero(UIStatusBarStyle.self)
@@ -382,13 +382,27 @@ import WebKit
382
382
  #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:225)
383
383
  return
384
384
  }
385
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:230)
386
- if try !(jsTruthy(jsUnwrap(owner, "_presentedViewController")._presentedViewController)) {
387
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:231)
385
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:232)
386
+ let frame: NativeScriptKit.Frame? = try jsCast(
387
+ (jsTruthy(self.navigationController)
388
+ ? jsGet(jsImplicit(self.navigationController), "owner") : jsNull),
389
+ NativeScriptKit.Frame.self)
390
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:233)
391
+ let executingEntry: Any? = try jsGetIfPresent(
392
+ (frame as NativeScriptKit.Frame?)?._executingContext, "entry")
393
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:234)
394
+ let isNavigatingAway: Bool =
395
+ jsTruthy(executingEntry)
396
+ && !jsStrictEquals(executingEntry, JSNativeKeyed(self)[jsKey: Core_ui_page_index.ENTRY])
397
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:235)
398
+ if try !(jsTruthy(jsUnwrap(owner, "_presentedViewController")._presentedViewController))
399
+ && !isNavigatingAway
400
+ {
401
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:236)
388
402
  try jsUnwrap(owner, setting: "_presentedViewController")._presentedViewController = jsImplicit(
389
403
  self.presentedViewController)
390
404
  }
391
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:234)
405
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:239)
392
406
  try jsUnwrap(owner, "updateWithWillDisappear").updateWithWillDisappear(animated)
393
407
  }()
394
408
  }
@@ -403,21 +417,21 @@ import WebKit
403
417
  jsOnMainThread(animated) { animated in
404
418
  jsReport {
405
419
  try { () throws -> Void in
406
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:239)
420
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:244)
407
421
  super.viewDidDisappear(animated)
408
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:241)
422
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:246)
409
423
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
410
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:244)
424
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:249)
411
425
  if try
412
426
  ((!jsTruthy(owner as Any?) || jsTruthy(jsUnwrap(owner, "modal").modal))
413
427
  || jsTruthy(jsUnwrap(owner, "_presentedViewController")._presentedViewController))
414
428
  {
415
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:245)
429
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:250)
416
430
  return
417
431
  }
418
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:249)
432
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:254)
419
433
  if try jsUnwrap(owner, "isLoaded").isLoaded {
420
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:250)
434
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:255)
421
435
  try jsUnwrap(owner, "callUnloaded").callUnloaded()
422
436
  }
423
437
  }()
@@ -433,13 +447,13 @@ import WebKit
433
447
  jsOnMainThread {
434
448
  jsReport {
435
449
  try { () throws -> Void in
436
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:255)
450
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:260)
437
451
  super.viewWillLayoutSubviews()
438
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:256)
452
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:261)
439
453
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
440
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:257)
454
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:262)
441
455
  if jsTruthy(owner as Any?) {
442
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:258)
456
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:263)
443
457
  try IOSHelper.updateConstraints(self, owner)
444
458
  }
445
459
  }()
@@ -455,20 +469,20 @@ import WebKit
455
469
  jsOnMainThread {
456
470
  jsReport {
457
471
  try { () throws -> Void in
458
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:263)
472
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:268)
459
473
  super.viewSafeAreaInsetsDidChange()
460
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:264)
474
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:269)
461
475
  if self.isRunningLayout || !self.didFirstLayout {
462
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:265)
476
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:270)
463
477
  return
464
478
  }
465
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:267)
479
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:272)
466
480
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
467
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:268)
481
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:273)
468
482
  if jsTruthy(owner as Any?) {
469
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:269)
483
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:274)
470
484
  try self.runLayout({ () throws -> Void in
471
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:269)
485
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:274)
472
486
  try IOSHelper.layoutView(self, owner)
473
487
  })
474
488
  }
@@ -485,80 +499,80 @@ import WebKit
485
499
  jsOnMainThread {
486
500
  jsReport {
487
501
  try { () throws -> Void in
488
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:274)
502
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:279)
489
503
  self.startRunningLayout()
490
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:275)
504
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:280)
491
505
  super.viewDidLayoutSubviews()
492
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:276)
506
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:281)
493
507
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
494
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:277)
508
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:282)
495
509
  if jsTruthy(owner as Any?) {
496
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:281)
510
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:286)
497
511
  if Core_utils_constants.SDK_VERSION >= 11 {
498
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:285)
512
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:290)
499
513
  let frame: NativeScriptKit.ViewBase? = try jsUnwrap(owner, "parent").parent
500
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:287)
514
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:292)
501
515
  var frameParent: NativeScriptKit.ViewBase? = try { () throws -> NativeScriptKit.ViewBase? in
502
516
  let __v_3 = frame
503
517
  return jsTruthy(__v_3) ? try jsUnwrap(frame, "parent").parent : nil
504
518
  }()
505
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:293)
519
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:298)
506
520
  while try
507
521
  (jsTruthy(frameParent)
508
522
  && !(jsTruthy(jsUnwrap(frameParent, "nativeViewProtected").nativeViewProtected)))
509
523
  {
510
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:294)
524
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:299)
511
525
  frameParent = try jsUnwrap(frameParent, "parent").parent
512
526
  }
513
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:297)
527
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:302)
514
528
  if jsTruthy(frameParent) {
515
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:298)
529
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:303)
516
530
  let parentPageInsetsTop: Any? = try jsGet(
517
531
  jsGet(
518
532
  jsUnwrap(frameParent, "nativeViewProtected").nativeViewProtected,
519
533
  "safeAreaInsets"), "top")
520
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:299)
534
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:304)
521
535
  let parentPageInsetsBottom: Any? = try jsGet(
522
536
  jsGet(
523
537
  jsUnwrap(frameParent, "nativeViewProtected").nativeViewProtected,
524
538
  "safeAreaInsets"), "bottom")
525
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:300)
539
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:305)
526
540
  var currentInsetsTop: Double = try Double(
527
541
  jsUnwrap(self.view, "safeAreaInsets").safeAreaInsets.top)
528
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:301)
542
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:306)
529
543
  var currentInsetsBottom: Double = try Double(
530
544
  jsUnwrap(self.view, "safeAreaInsets").safeAreaInsets.bottom)
531
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:304)
545
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:309)
532
546
  if jsTruthy(self.additionalSafeAreaInsets) {
533
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:305)
547
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:310)
534
548
  currentInsetsTop -= Double(self.additionalSafeAreaInsets.top)
535
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:306)
549
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:311)
536
550
  currentInsetsBottom -= Double(self.additionalSafeAreaInsets.bottom)
537
551
  }
538
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:309)
552
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:314)
539
553
  let additionalInsetsTop: Double = try jsMathMax(
540
554
  jsSubtractThrowing(parentPageInsetsTop, currentInsetsTop), 0)
541
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:310)
555
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:315)
542
556
  let additionalInsetsBottom: Double = try jsMathMax(
543
557
  jsSubtractThrowing(parentPageInsetsBottom, currentInsetsBottom), 0)
544
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:312)
558
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:317)
545
559
  if additionalInsetsTop > 0 || additionalInsetsBottom > 0 {
546
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:313)
560
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:318)
547
561
  let additionalInsets: UIEdgeInsets = UIEdgeInsets(
548
562
  top: CGFloat(jsNativeNumber(additionalInsetsTop)), left: 0,
549
563
  bottom: CGFloat(jsNativeNumber(additionalInsetsBottom)), right: 0)
550
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:319)
564
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:324)
551
565
  self.additionalSafeAreaInsets = additionalInsets
552
566
  } else {
553
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:321)
567
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:326)
554
568
  self.additionalSafeAreaInsets = UIEdgeInsets()
555
569
  }
556
570
  }
557
571
  }
558
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:326)
572
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:331)
559
573
  try IOSHelper.layoutView(self, owner)
560
574
  }
561
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:328)
575
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:333)
562
576
  self.finishRunningLayout()
563
577
  }()
564
578
  }
@@ -574,15 +588,15 @@ import WebKit
574
588
  let previousTraitCollection: UITraitCollection? = previousTraitCollection
575
589
  jsReport {
576
590
  try { () throws -> Void in
577
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:333)
591
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:338)
578
592
  super.traitCollectionDidChange(previousTraitCollection)
579
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:335)
593
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:340)
580
594
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
581
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:336)
595
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:341)
582
596
  if jsTruthy(owner as Any?) {
583
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:337)
597
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:342)
584
598
  if Core_utils_constants.SDK_VERSION >= 13 {
585
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:338)
599
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:343)
586
600
  if try
587
601
  (jsTruthy(
588
602
  jsUnwrap(
@@ -594,7 +608,7 @@ import WebKit
594
608
  self.traitCollection, "hasDifferentColorAppearanceComparedToTraitCollection"
595
609
  ).hasDifferentColorAppearance(comparedTo: previousTraitCollection))
596
610
  {
597
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:339)
611
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:344)
598
612
  try jsUnwrap(owner, "notify").notify(
599
613
  EventData(
600
614
  jsObject: EventData(
@@ -604,11 +618,11 @@ import WebKit
604
618
  ]))))
605
619
  }
606
620
  }
607
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:346)
621
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:351)
608
622
  if try jsUnwrap(self.traitCollection, "layoutDirection").layoutDirection
609
623
  != jsUnwrap(previousTraitCollection, "layoutDirection").layoutDirection
610
624
  {
611
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:347)
625
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:352)
612
626
  try jsUnwrap(owner, "notify").notify(
613
627
  EventData(
614
628
  jsObject: EventData(
@@ -627,18 +641,18 @@ import WebKit
627
641
  if jsOffScriptThread() { return jsAwait { self.accessibilityPerformEscape() } }
628
642
  return jsOnMainThread { () -> Bool in
629
643
  let __result: Bool = jsReportedOrZero { () throws -> Bool in
630
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:356)
644
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:361)
631
645
  let owner: NativeScriptKit.Page? = (self._owner as JSWeakRef<NativeScriptKit.Page>?)?.deref()
632
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:357)
646
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:362)
633
647
  if jsTruthy(owner?.onAccessibilityPerformEscape as Any?) {
634
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:358)
648
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:363)
635
649
  let result: Bool = try jsCallable(
636
650
  jsUnwrap(owner, "onAccessibilityPerformEscape").onAccessibilityPerformEscape,
637
651
  "owner.onAccessibilityPerformEscape")()
638
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:359)
652
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:364)
639
653
  return result
640
654
  } else {
641
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:361)
655
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:366)
642
656
  return false
643
657
  }
644
658
  }
@@ -701,12 +715,12 @@ open class Page: PageBase {
701
715
  self._backgroundColor =
702
716
  (Core_utils_constants.SDK_VERSION <= 12 && !jsTruthy(UIColor.systemBackground)
703
717
  ? UIColor.white : UIColor.systemBackground)
704
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:390)
718
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:395)
705
719
  let controller: UIViewControllerImpl? = try UIViewControllerImpl.initWithOwner(JSWeakRef<Page>(self))
706
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:391)
720
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:396)
707
721
  try jsUnwrap(jsUnwrap(controller, "view").view, setting: "backgroundColor").backgroundColor =
708
722
  self._backgroundColor
709
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:392)
723
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:397)
710
724
  do {
711
725
  self._ios = controller
712
726
  self.viewController = controller
@@ -716,35 +730,35 @@ open class Page: PageBase {
716
730
  }
717
731
  #sourceLocation()
718
732
  open override var ios: Any? {
719
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:413)
733
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:418)
720
734
  return self._ios
721
735
  }
722
736
  #sourceLocation()
723
737
  open func symbol_setNative_actionBarHidden(_ value: Bool) throws {
724
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:575)
738
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:580)
725
739
  try Core_ui_page_index.invalidateTopmostController((self.viewController as? UIViewControllerImpl))
726
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:577)
740
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:582)
727
741
  let frame: Frame? = self.frame
728
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:578)
742
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:583)
729
743
  if jsTruthy(frame) {
730
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:580)
744
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:585)
731
745
  try jsUnwrap(frame, "_updateActionBar")._updateActionBar(self, true)
732
746
  }
733
747
  }
734
748
  #sourceLocation()
735
749
  open func symbol_setNative_enableSwipeBackNavigation(_ value: Bool) throws {
736
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:585)
750
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:590)
737
751
  try self._updateEnableSwipeBackNavigation(value)
738
752
  }
739
753
  #sourceLocation()
740
754
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
741
- if key == ((Core_ui_page_page_common.actionBarHiddenProperty?.setNative)?.key ?? "undefined") {
755
+ if key == (try? ((Core_ui_page_page_common.actionBarHiddenProperty?.setNative)?.key ?? "undefined")) {
742
756
  return { __this, __a in
743
757
  try (jsCastPresent(__this) as Page).symbol_setNative_actionBarHidden(false)
744
758
  return nil
745
759
  }
746
760
  }
747
- if key == ((Core_ui_page_page_common.enableSwipeBackNavigationProperty?.setNative)?.key ?? "undefined") {
761
+ if key == (try? ((Core_ui_page_page_common.enableSwipeBackNavigationProperty?.setNative)?.key ?? "undefined")) {
748
762
  return { __this, __a in
749
763
  try (jsCastPresent(__this) as Page).symbol_setNative_enableSwipeBackNavigation(
750
764
  (try jsConvertedBool(jsArg(__a, 0))))
@@ -756,49 +770,49 @@ open class Page: PageBase {
756
770
  open override class var jsSymbolPlain: Bool { false }
757
771
  open override func createNativeView() throws -> Any? {
758
772
  let __result: UIView? = try { () throws -> UIView? in
759
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:397)
773
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:402)
760
774
  if !jsTruthy(self._ios) {
761
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:398)
775
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:403)
762
776
  let controller: UIViewControllerImpl? = try UIViewControllerImpl.initWithOwner(JSWeakRef<Page>(self))
763
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:399)
777
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:404)
764
778
  try jsUnwrap(jsUnwrap(controller, "view").view, setting: "backgroundColor").backgroundColor =
765
779
  self._backgroundColor
766
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:400)
780
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:405)
767
781
  do {
768
782
  self._ios = controller
769
783
  self.viewController = controller
770
784
  }
771
785
  }
772
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:402)
786
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:407)
773
787
  return try jsImplicit(jsUnwrap(self._ios, "view").view)
774
788
  }()
775
789
  return __result
776
790
  }
777
791
  #sourceLocation()
778
792
  open override func disposeNativeView() throws {
779
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:406)
793
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:411)
780
794
  self.viewController = jsNull
781
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:407)
795
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:412)
782
796
  self._ios = nil
783
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:408)
797
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:413)
784
798
  try super.disposeNativeView()
785
799
  }
786
800
  #sourceLocation()
787
801
  open override func layoutNativeView(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
788
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:417)
802
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:422)
789
803
  let nativeView: UIView? = self.nativeViewProtected as? UIView
790
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:418)
804
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:423)
791
805
  if !jsTruthy(nativeView) {
792
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:419)
806
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:424)
793
807
  return
794
808
  }
795
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:422)
809
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:427)
796
810
  let currentFrame: CGRect = try jsUnwrap(nativeView, "frame").frame
797
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:424)
811
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:429)
798
812
  let newFrame: CGRect = CGRect(
799
813
  x: currentFrame.origin.x, y: currentFrame.origin.y, width: currentFrame.size.width,
800
814
  height: currentFrame.size.height)
801
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:426)
815
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:431)
802
816
  try self._setNativeViewFrame(nativeView, newFrame)
803
817
  }
804
818
  #sourceLocation()
@@ -808,7 +822,7 @@ open class Page: PageBase {
808
822
  }()
809
823
  }
810
824
  open override func _shouldDelayLayout() throws -> Bool {
811
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:434)
825
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:439)
812
826
  return try
813
827
  ({ () throws -> Bool in
814
828
  let __v_7 = self.frame
@@ -818,22 +832,22 @@ open class Page: PageBase {
818
832
  }
819
833
  #sourceLocation()
820
834
  open override func onLoaded() throws {
821
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:438)
835
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:443)
822
836
  try super.onLoaded()
823
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:439)
837
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:444)
824
838
  if self.hasActionBar {
825
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:440)
839
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:445)
826
840
  try jsUnwrap(self.actionBar, "update").update()
827
841
  }
828
842
  }
829
843
  #sourceLocation()
830
844
  open func updateWithWillAppear(_ animated: Bool) throws {
831
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:446)
845
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:451)
832
846
  if self.hasActionBar {
833
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:447)
847
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:452)
834
848
  try jsUnwrap(self.actionBar, "update").update()
835
849
  }
836
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:449)
850
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:454)
837
851
  try self.updateStatusBar()
838
852
  }
839
853
  #sourceLocation()
@@ -841,20 +855,20 @@ open class Page: PageBase {
841
855
 
842
856
  }
843
857
  open func updateStatusBar() throws {
844
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:458)
858
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:463)
845
859
  try self._updateStatusBarStyle(self.statusBarStyle)
846
860
  }
847
861
  #sourceLocation()
848
862
  open func _updateStatusBarStyle(_ value: String? = nil) throws {
849
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:462)
863
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:467)
850
864
  let frame: Frame? = self.frame
851
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:463)
865
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:468)
852
866
  if jsTruthy((((frame as Frame?)?.ios) as? iOSFrame)) && jsTruthy(value as Any?) {
853
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:464)
867
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:469)
854
868
  let navigationController: UINavigationController? = try jsUnwrap(
855
869
  jsUnwrap(frame, "ios").ios as? iOSFrame, "controller"
856
870
  ).controller
857
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:465)
871
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:470)
858
872
  try IOSHelper.invalidateStatusBarAppearance(
859
873
  navigationController, "Page._updateStatusBarStyle:\(jsToString(value as Any?))")
860
874
  }
@@ -862,30 +876,30 @@ open class Page: PageBase {
862
876
  #sourceLocation()
863
877
  open func _updateEnableSwipeBackNavigation(_ enabled: Bool) throws {
864
878
  var enabled = enabled
865
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:470)
879
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:475)
866
880
  let navController: UINavigationController? = try jsUnwrap(self._ios, "navigationController")
867
881
  .navigationController
868
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:471)
882
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:476)
869
883
  if jsTruthy(self.frame) && jsTruthy(navController) {
870
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:473)
884
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:478)
871
885
  enabled = try enabled && jsUnwrap(self.frame, "canGoBack").canGoBack()
872
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:474)
886
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:479)
873
887
  if try jsTruthy(jsUnwrap(navController, "interactivePopGestureRecognizer").interactivePopGestureRecognizer)
874
888
  {
875
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:475)
889
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:480)
876
890
  try jsUnwrap(
877
891
  jsUnwrap(navController, "interactivePopGestureRecognizer").interactivePopGestureRecognizer,
878
892
  setting: "enabled"
879
893
  ).isEnabled = enabled
880
894
  }
881
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:478)
895
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:483)
882
896
  if #available(iOS 26, *),
883
897
  try jsTruthy(
884
898
  jsImplicit(
885
899
  jsUnwrap(navController, "interactiveContentPopGestureRecognizer")
886
900
  .interactiveContentPopGestureRecognizer))
887
901
  {
888
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:479)
902
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:484)
889
903
  try jsUnwrap(
890
904
  jsUnwrap(navController, "interactiveContentPopGestureRecognizer")
891
905
  .interactiveContentPopGestureRecognizer, setting: "enabled"
@@ -895,61 +909,61 @@ open class Page: PageBase {
895
909
  }
896
910
  #sourceLocation()
897
911
  open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
898
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:485)
912
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:490)
899
913
  let width: Double = try NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
900
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:486)
914
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:491)
901
915
  let widthMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
902
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:488)
916
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:493)
903
917
  let height: Double = try NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
904
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:489)
918
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:494)
905
919
  let heightMode: Double = try NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
906
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:491)
920
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:496)
907
921
  if try
908
922
  ((self.hasActionBar && jsTruthy(self.frame))
909
923
  && jsTruthy(jsUnwrap(self.frame, "_getNavBarVisible")._getNavBarVisible(self)! as Any?))
910
924
  {
911
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:492)
925
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:497)
912
926
  let __d_1: Any? = try jsUnwrap(self.actionBar, "_getActualSize")._getActualSize
913
927
  let width: Double = (try jsConvertedNumber((try jsGet(__d_1, "width"))))
914
928
  let height: Double = (try jsConvertedNumber((try jsGet(__d_1, "height"))))
915
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:493)
929
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:498)
916
930
  let widthSpec: Double = NativeScriptKit.layout.makeMeasureSpec(width, NativeScriptKit.layout.EXACTLY)
917
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:494)
931
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:499)
918
932
  let heightSpec: Double = NativeScriptKit.layout.makeMeasureSpec(height, NativeScriptKit.layout.EXACTLY)
919
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:495)
933
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:500)
920
934
  _ = try View.measureChild(self, self.actionBar, widthSpec, heightSpec)
921
935
  }
922
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:498)
936
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:503)
923
937
  let result: Any? = try View.measureChild(self, self.layoutView, widthMeasureSpec, heightMeasureSpec)
924
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:500)
938
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:505)
925
939
  let measureWidth: Double = try jsMathMax(
926
940
  jsConvertedNumber(jsGet(result, "measuredWidth")), self.effectiveMinWidth)
927
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:501)
941
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:506)
928
942
  let measureHeight: Double = try jsMathMax(
929
943
  jsConvertedNumber(jsGet(result, "measuredHeight")), self.effectiveMinHeight)
930
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:503)
944
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:508)
931
945
  let widthAndState: Double = View.resolveSizeAndState(measureWidth, width, widthMode, 0)
932
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:504)
946
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:509)
933
947
  let heightAndState: Double = View.resolveSizeAndState(measureHeight, height, heightMode, 0)
934
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:506)
948
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:511)
935
949
  try self.setMeasuredDimension(widthAndState, heightAndState)
936
950
  }
937
951
  #sourceLocation()
938
952
  open override func onLayout(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
939
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:510)
953
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:515)
940
954
  if self.hasActionBar {
941
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:511)
955
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:516)
942
956
  let __d_2: Any? = try jsUnwrap(self.actionBar, "_getActualSize")._getActualSize
943
957
  let actionBarWidth: Double = (try jsConvertedNumber((try jsGet(__d_2, "width"))))
944
958
  let actionBarHeight: Double = (try jsConvertedNumber((try jsGet(__d_2, "height"))))
945
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:512)
959
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:517)
946
960
  try View.layoutChild(self, self.actionBar, 0, 0, actionBarWidth, actionBarHeight)
947
961
  }
948
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:515)
962
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:520)
949
963
  let insets: Any? = try self.getSafeAreaInsets()
950
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:517)
964
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:522)
951
965
  if Core_utils_constants.SDK_VERSION <= 10 && jsTruthy((self.viewController as? UIViewControllerImpl)) {
952
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:520)
966
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:525)
953
967
  try jsSet(
954
968
  insets, "top",
955
969
  NativeScriptKit.layout.round(
@@ -962,15 +976,15 @@ open class Page: PageBase {
962
976
  ).safeAreaLayoutGuide, "layoutFrame"
963
977
  ).layoutFrame.origin.y))))
964
978
  }
965
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:523)
979
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:528)
966
980
  let childLeft: Double = try 0 + jsConvertedNumber(jsGet(insets, "left"))
967
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:524)
981
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:529)
968
982
  let childTop: Double = try 0 + jsConvertedNumber(jsGet(insets, "top"))
969
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:525)
983
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:530)
970
984
  let childRight: Double = try right - jsConvertedNumber(jsGet(insets, "right"))
971
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:526)
985
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:531)
972
986
  let childBottom: Double = try bottom - jsConvertedNumber(jsGet(insets, "bottom"))
973
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:528)
987
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:533)
974
988
  try View.layoutChild(self, self.layoutView, childLeft, childTop, childRight, childBottom)
975
989
  }
976
990
  #sourceLocation()
@@ -978,43 +992,43 @@ open class Page: PageBase {
978
992
  let child: View? = __b0 as? View
979
993
  let atIndex: Double? = __b1
980
994
  let __result: Bool = try { () throws -> Bool in
981
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:533)
995
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:538)
982
996
  if self.hasActionBar && jsStrictEquals(child, self.actionBar) {
983
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:534)
997
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:539)
984
998
  return true
985
999
  }
986
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:537)
1000
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:542)
987
1001
  let nativeParent: UIView? = self.nativeViewProtected as? UIView
988
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:538)
1002
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:543)
989
1003
  let nativeChild: UIView? = try jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView
990
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:540)
1004
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:545)
991
1005
  let viewController: UIViewController? =
992
1006
  try
993
1007
  ((jsUnwrap(child, "ios").ios is UIViewController)
994
1008
  ? (jsUnwrap(child, "ios").ios as? UIViewController)
995
1009
  : (jsUnwrap(child, "viewController").viewController as? UIViewController))
996
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:541)
1010
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:546)
997
1011
  if jsTruthy(viewController) {
998
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:543)
1012
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:548)
999
1013
  if try jsImplicit(
1000
1014
  jsUnwrap(self.viewController as? UIViewControllerImpl, "presentedViewController")
1001
1015
  .presentedViewController) === viewController
1002
1016
  {
1003
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:544)
1017
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:549)
1004
1018
  return true
1005
1019
  }
1006
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:547)
1020
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:552)
1007
1021
  try jsUnwrap(self.viewController as? UIViewControllerImpl, "addChildViewController").addChild(
1008
1022
  jsObjectRequired(viewController))
1009
1023
  }
1010
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:550)
1024
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:555)
1011
1025
  if jsTruthy(nativeParent) && jsTruthy(nativeChild) {
1012
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:551)
1026
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:556)
1013
1027
  try IOSHelper.insertNativeSubview(nativeParent, nativeChild, atIndex)
1014
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:553)
1028
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:558)
1015
1029
  return true
1016
1030
  }
1017
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:556)
1031
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:561)
1018
1032
  return false
1019
1033
  }()
1020
1034
  return __result
@@ -1023,84 +1037,84 @@ open class Page: PageBase {
1023
1037
  open override func _removeViewFromNativeVisualTree(_ __b0: ViewBase?) throws {
1024
1038
  let child: View? = __b0 as? View
1025
1039
  _ = try { () throws -> Void in
1026
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:561)
1040
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:566)
1027
1041
  if self.hasActionBar && jsStrictEquals(child, self.actionBar) {
1028
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:562)
1042
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:567)
1029
1043
  return
1030
1044
  }
1031
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:565)
1045
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:570)
1032
1046
  let viewController: UIViewController? =
1033
1047
  try
1034
1048
  ((jsUnwrap(child, "ios").ios is UIViewController)
1035
1049
  ? (jsUnwrap(child, "ios").ios as? UIViewController)
1036
1050
  : (jsUnwrap(child, "viewController").viewController as? UIViewController))
1037
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:566)
1051
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:571)
1038
1052
  if jsTruthy(viewController) {
1039
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:567)
1053
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:572)
1040
1054
  try jsUnwrap(viewController, "removeFromParentViewController").removeFromParent()
1041
1055
  }
1042
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:570)
1056
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:575)
1043
1057
  try super._removeViewFromNativeVisualTree(child)
1044
1058
  }()
1045
1059
  }
1046
1060
  #sourceLocation()
1047
1061
  open override func accessibilityScreenChanged(_ refocus: Bool? = nil) throws {
1048
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:588)
1062
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:593)
1049
1063
  let refocus: Bool = refocus ?? false
1050
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:589)
1064
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:594)
1051
1065
  if try !Core_application_application.isAccessibilityServiceEnabled() {
1052
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:590)
1066
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:595)
1053
1067
  return
1054
1068
  }
1055
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:593)
1069
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:598)
1056
1070
  if refocus {
1057
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:594)
1071
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:599)
1058
1072
  let lastFocusedView: View? = Core_accessibility_accessibility_common.getLastFocusedViewOnPage(self)
1059
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:595)
1073
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:600)
1060
1074
  if jsTruthy(lastFocusedView) {
1061
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:596)
1075
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:601)
1062
1076
  let uiView: UIView? =
1063
1077
  try jsUnwrap(lastFocusedView, "nativeViewProtected").nativeViewProtected as? UIView
1064
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:597)
1078
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:602)
1065
1079
  if jsTruthy(uiView) {
1066
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:598)
1080
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:603)
1067
1081
  UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged, argument: uiView)
1068
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:600)
1082
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:605)
1069
1083
  return
1070
1084
  }
1071
1085
  }
1072
1086
  }
1073
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:605)
1087
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:610)
1074
1088
  if self.actionBarHidden {
1075
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:606)
1089
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:611)
1076
1090
  UIAccessibility.post(
1077
1091
  notification: UIAccessibility.Notification.screenChanged,
1078
1092
  argument: (self.nativeViewProtected as? UIView))
1079
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:608)
1093
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:613)
1080
1094
  return
1081
1095
  }
1082
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:611)
1096
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:616)
1083
1097
  if jsTruthy(self.accessibilityLabel) {
1084
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:612)
1098
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:617)
1085
1099
  UIAccessibility.post(
1086
1100
  notification: UIAccessibility.Notification.screenChanged,
1087
1101
  argument: (self.nativeViewProtected as? UIView))
1088
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:614)
1102
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:619)
1089
1103
  return
1090
1104
  }
1091
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:617)
1105
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:622)
1092
1106
  if try
1093
1107
  (jsTruthy(jsUnwrap(self.actionBar, "accessibilityLabel").accessibilityLabel)
1094
1108
  || jsTruthy(jsUnwrap(self.actionBar, "title").title))
1095
1109
  {
1096
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:618)
1110
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:623)
1097
1111
  try UIAccessibility.post(
1098
1112
  notification: UIAccessibility.Notification.screenChanged,
1099
1113
  argument: jsFlat(jsUnwrap(self.actionBar, "nativeView").nativeView))
1100
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:620)
1114
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:625)
1101
1115
  return
1102
1116
  }
1103
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:623)
1117
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:628)
1104
1118
  UIAccessibility.post(
1105
1119
  notification: UIAccessibility.Notification.screenChanged, argument: (self.nativeViewProtected as? UIView))
1106
1120
  }
@@ -1274,49 +1288,49 @@ public enum Core_ui_page_index {
1274
1288
  public static let TRANSITION: String = "_transition"
1275
1289
  public static let NON_ANIMATED_TRANSITION: String = "non-animated"
1276
1290
  public static func invalidateTopmostController(_ controller: UIViewController?) throws {
1277
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:628)
1291
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:633)
1278
1292
  if !jsTruthy(controller) {
1279
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:629)
1293
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:634)
1280
1294
  return
1281
1295
  }
1282
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:632)
1296
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:637)
1283
1297
  try jsUnwrap(jsUnwrap(controller, "view").view, "setNeedsLayout").setNeedsLayout()
1284
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:634)
1298
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:639)
1285
1299
  let presentedViewController: UIViewController? = try jsUnwrap(controller, "presentedViewController")
1286
1300
  .presentedViewController
1287
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:635)
1301
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:640)
1288
1302
  if jsTruthy(presentedViewController) {
1289
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:636)
1303
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:641)
1290
1304
  _ = try Core_ui_page_index.invalidateTopmostController(presentedViewController)
1291
1305
  return
1292
1306
  }
1293
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:639)
1307
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:644)
1294
1308
  let childControllers: [Any] = try jsUnwrap(controller, "childViewControllers").children
1295
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:640)
1309
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:645)
1296
1310
  var size: Double = try Double(jsUnwrap(controller, "childViewControllers").children.count)
1297
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:641)
1311
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:646)
1298
1312
  while size > 0 {
1299
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:642)
1313
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:647)
1300
1314
  let childController: Any? = try jsNativeElement(jsUnwrap(childControllers, "--size"), jsPreDecrement(&size))
1301
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:643)
1315
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:648)
1302
1316
  if childController is UITabBarController {
1303
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:644)
1317
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:649)
1304
1318
  try Core_ui_page_index.invalidateTopmostController(
1305
1319
  jsImplicit(
1306
1320
  jsUnwrap(childController as? UITabBarController, "selectedViewController")
1307
1321
  .selectedViewController))
1308
1322
  } else if childController is UINavigationController {
1309
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:646)
1323
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:651)
1310
1324
  try Core_ui_page_index.invalidateTopmostController(
1311
1325
  jsImplicit(
1312
1326
  jsUnwrap(childController as? UINavigationController, "topViewController").topViewController))
1313
1327
  } else if childController is UISplitViewController {
1314
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:648)
1328
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:653)
1315
1329
  try Core_ui_page_index.invalidateTopmostController(
1316
1330
  ((jsUnwrap(childController as? UISplitViewController, "viewControllers").viewControllers.last
1317
1331
  as Any?) as? UIViewController))
1318
1332
  } else {
1319
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:650)
1333
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:655)
1320
1334
  try Core_ui_page_index.invalidateTopmostController((childController as? UIViewController))
1321
1335
  }
1322
1336
  }
@@ -1329,7 +1343,7 @@ public func __init_Core_ui_page_index() {
1329
1343
 
1330
1344
  #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:20)
1331
1345
 
1332
- #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:379)
1346
+ #sourceLocation(file:"@nativescript/core/ui.page.index.ios.ts",line:384)
1333
1347
  JSPrototypes.declare(
1334
1348
  Page.self, "ios",
1335
1349
  get: { (__this: Any?) throws -> Any? in