@nstudio/nativescript-compiler 9.2.0-alpha.18 → 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 (70) hide show
  1. package/config.js +1 -0
  2. package/dist/kotlin/arguments.js +6 -0
  3. package/dist/kotlin/overrides.js +1 -1
  4. package/dist/semantics/conversion.js +9 -1
  5. package/dist/semantics/runtime.js +1 -0
  6. package/dist/semantics/signals.js +1 -1
  7. package/dist/semantics/throws.js +1 -1
  8. package/dist/swift/arguments.js +14 -9
  9. package/dist/swift/assignment.js +6 -1
  10. package/dist/swift/calls.js +7 -2
  11. package/dist/swift/class-methods.js +2 -1
  12. package/dist/swift/library.js +2 -2
  13. package/dist/swift/method-values.js +2 -1
  14. package/dist/swift/names.js +4 -4
  15. package/dist/swift/native/calls.js +9 -3
  16. package/dist/swift/placement.js +18 -3
  17. package/dist/swift/static-calls.js +1 -1
  18. package/dist/swift/syntax.js +1 -1
  19. package/dist/swift/types.js +2 -2
  20. package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +9 -0
  21. package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +6 -2
  22. package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +1 -1
  23. package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +7 -7
  24. package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +10 -10
  25. package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +1 -1
  26. package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +3 -3
  27. package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +2 -2
  28. package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +4 -22
  29. package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +2 -1
  30. package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +33 -21
  31. package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +12 -6
  32. package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1 -1
  33. package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +6 -2
  34. package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +14 -13
  35. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +8 -7
  36. package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +79 -59
  37. package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +17 -16
  38. package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +2 -2
  39. package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +27 -18
  40. package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +9 -9
  41. package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +6 -6
  42. package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +8 -8
  43. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +4 -3
  44. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +1 -1
  45. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +1 -1
  46. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +2 -2
  47. package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +9 -9
  48. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +9 -6
  49. package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +38 -20
  50. package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +2 -2
  51. package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +12 -10
  52. package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +18 -9
  53. package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +28 -18
  54. package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +19 -12
  55. package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +14 -12
  56. package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +14 -9
  57. package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +12 -10
  58. package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +36 -20
  59. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +2 -2
  60. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +25 -22
  61. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +2 -3
  62. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +21 -14
  63. package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +33 -21
  64. package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +22 -18
  65. package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +15 -15
  66. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +1 -1
  67. package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +2 -2
  68. package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +2 -2
  69. package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +2 -1
  70. package/package.json +5 -3
@@ -328,97 +328,107 @@ open class SearchBar: SearchBarBase {
328
328
  }
329
329
  #sourceLocation()
330
330
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
331
- if key == ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined") {
331
+ if key == (try? ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined")) {
332
332
  return { __this, __a in
333
333
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_isEnabled_SearchBar(
334
334
  (try jsConvertedBool(jsArg(__a, 0))))
335
335
  return nil
336
336
  }
337
337
  }
338
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
338
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
339
339
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_backgroundColor()
340
340
  }
341
341
  }
342
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
342
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
343
343
  return { __this, __a in
344
344
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_backgroundColor(jsArg(__a, 0))
345
345
  return nil
346
346
  }
347
347
  }
348
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
348
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
349
349
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_color() }
350
350
  }
351
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
351
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
352
352
  return { __this, __a in
353
353
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_color(jsArg(__a, 0))
354
354
  return nil
355
355
  }
356
356
  }
357
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
357
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
358
358
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_fontInternal() }
359
359
  }
360
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
360
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
361
361
  return { __this, __a in
362
362
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_fontInternal(jsArg(__a, 0))
363
363
  return nil
364
364
  }
365
365
  }
366
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
366
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
367
+ {
367
368
  return { __this, __a in
368
369
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_backgroundInternal_SearchBar()
369
370
  }
370
371
  }
371
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
372
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
373
+ {
372
374
  return { __this, __a in
373
375
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_backgroundInternal_SearchBar(nil)
374
376
  return nil
375
377
  }
376
378
  }
377
- if key == ((Core_ui_search_bar_search_bar_common.textProperty?.getDefault)?.key ?? "undefined") {
379
+ if key == (try? ((Core_ui_search_bar_search_bar_common.textProperty?.getDefault)?.key ?? "undefined")) {
378
380
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_text() }
379
381
  }
380
- if key == ((Core_ui_search_bar_search_bar_common.textProperty?.setNative)?.key ?? "undefined") {
382
+ if key == (try? ((Core_ui_search_bar_search_bar_common.textProperty?.setNative)?.key ?? "undefined")) {
381
383
  return { __this, __a in
382
384
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_text((try jsConvertedString(jsArg(__a, 0))))
383
385
  return nil
384
386
  }
385
387
  }
386
- if key == ((Core_ui_search_bar_search_bar_common.hintProperty?.getDefault)?.key ?? "undefined") {
388
+ if key == (try? ((Core_ui_search_bar_search_bar_common.hintProperty?.getDefault)?.key ?? "undefined")) {
387
389
  return { __this, __a in return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_hint() }
388
390
  }
389
- if key == ((Core_ui_search_bar_search_bar_common.hintProperty?.setNative)?.key ?? "undefined") {
391
+ if key == (try? ((Core_ui_search_bar_search_bar_common.hintProperty?.setNative)?.key ?? "undefined")) {
390
392
  return { __this, __a in
391
393
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_hint("")
392
394
  return nil
393
395
  }
394
396
  }
395
397
  if key
396
- == ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.getDefault)?.key ?? "undefined")
398
+ == (try?
399
+ ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.getDefault)?.key ?? "undefined"))
397
400
  {
398
401
  return { __this, __a in
399
402
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_textFieldBackgroundColor()
400
403
  }
401
404
  }
402
405
  if key
403
- == ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.setNative)?.key ?? "undefined")
406
+ == (try?
407
+ ((Core_ui_search_bar_search_bar_common.textFieldBackgroundColorProperty?.setNative)?.key ?? "undefined"))
404
408
  {
405
409
  return { __this, __a in
406
410
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_textFieldBackgroundColor(jsArg(__a, 0))
407
411
  return nil
408
412
  }
409
413
  }
410
- if key == ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.getDefault)?.key ?? "undefined") {
414
+ if key
415
+ == (try? ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.getDefault)?.key ?? "undefined"))
416
+ {
411
417
  return { __this, __a in
412
418
  return try (jsCastPresent(__this) as SearchBar).symbol_getDefault_textFieldHintColor()
413
419
  }
414
420
  }
415
- if key == ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.setNative)?.key ?? "undefined") {
421
+ if key
422
+ == (try? ((Core_ui_search_bar_search_bar_common.textFieldHintColorProperty?.setNative)?.key ?? "undefined"))
423
+ {
416
424
  return { __this, __a in
417
425
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_textFieldHintColor(nil)
418
426
  return nil
419
427
  }
420
428
  }
421
- if key == ((Core_ui_search_bar_search_bar_common.clearButtonColorProperty?.setNative)?.key ?? "undefined") {
429
+ if key
430
+ == (try? ((Core_ui_search_bar_search_bar_common.clearButtonColorProperty?.setNative)?.key ?? "undefined"))
431
+ {
422
432
  return { __this, __a in
423
433
  try (jsCastPresent(__this) as SearchBar).symbol_setNative_clearButtonColor(jsArg(__a, 0))
424
434
  return nil
@@ -198,21 +198,26 @@ open class SegmentedBar: SegmentedBarBase {
198
198
  }
199
199
  #sourceLocation()
200
200
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
201
- if key == ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.getDefault)?.key ?? "undefined") {
201
+ if key
202
+ == (try?
203
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.getDefault)?.key ?? "undefined"))
204
+ {
202
205
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_selectedIndex()
203
206
  }
204
207
  }
205
- if key == ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.setNative)?.key ?? "undefined") {
208
+ if key
209
+ == (try? ((Core_ui_segmented_bar_segmented_bar_common.selectedIndexProperty?.setNative)?.key ?? "undefined"))
210
+ {
206
211
  return { __this, __a in
207
212
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_selectedIndex(
208
213
  (try jsConvertedNumber(jsArg(__a, 0))))
209
214
  return nil
210
215
  }
211
216
  }
212
- if key == ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.getDefault)?.key ?? "undefined") {
217
+ if key == (try? ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.getDefault)?.key ?? "undefined")) {
213
218
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_items() }
214
219
  }
215
- if key == ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.setNative)?.key ?? "undefined") {
220
+ if key == (try? ((Core_ui_segmented_bar_segmented_bar_common.itemsProperty?.setNative)?.key ?? "undefined")) {
216
221
  return { __this, __a in
217
222
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_items(
218
223
  try jsArrayOrNil(
@@ -222,36 +227,38 @@ open class SegmentedBar: SegmentedBarBase {
222
227
  }
223
228
  }
224
229
  if key
225
- == ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.getDefault)?.key
226
- ?? "undefined")
230
+ == (try?
231
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.getDefault)?.key
232
+ ?? "undefined"))
227
233
  {
228
234
  return { __this, __a in
229
235
  return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_selectedBackgroundColor()
230
236
  }
231
237
  }
232
238
  if key
233
- == ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.setNative)?.key
234
- ?? "undefined")
239
+ == (try?
240
+ ((Core_ui_segmented_bar_segmented_bar_common.selectedBackgroundColorProperty?.setNative)?.key
241
+ ?? "undefined"))
235
242
  {
236
243
  return { __this, __a in
237
244
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_selectedBackgroundColor(jsArg(__a, 0))
238
245
  return nil
239
246
  }
240
247
  }
241
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
248
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
242
249
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_color() }
243
250
  }
244
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
251
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
245
252
  return { __this, __a in
246
253
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_color(jsArg(__a, 0))
247
254
  return nil
248
255
  }
249
256
  }
250
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
257
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
251
258
  return { __this, __a in return try (jsCastPresent(__this) as SegmentedBar).symbol_getDefault_fontInternal()
252
259
  }
253
260
  }
254
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
261
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
255
262
  return { __this, __a in
256
263
  try (jsCastPresent(__this) as SegmentedBar).symbol_setNative_fontInternal(
257
264
  (try jsCast(jsArg(__a, 0), Font__font_ios.self)))
@@ -232,57 +232,59 @@ open class Slider: SliderBase {
232
232
  }
233
233
  #sourceLocation()
234
234
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
235
- if key == ((Core_ui_slider_slider_common.valueProperty?.getDefault)?.key ?? "undefined") {
235
+ if key == (try? ((Core_ui_slider_slider_common.valueProperty?.getDefault)?.key ?? "undefined")) {
236
236
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_value() }
237
237
  }
238
- if key == ((Core_ui_slider_slider_common.valueProperty?.setNative)?.key ?? "undefined") {
238
+ if key == (try? ((Core_ui_slider_slider_common.valueProperty?.setNative)?.key ?? "undefined")) {
239
239
  return { __this, __a in
240
240
  try (jsCastPresent(__this) as Slider).symbol_setNative_value((try jsConvertedNumber(jsArg(__a, 0))))
241
241
  return nil
242
242
  }
243
243
  }
244
- if key == ((Core_ui_slider_slider_common.minValueProperty?.getDefault)?.key ?? "undefined") {
244
+ if key == (try? ((Core_ui_slider_slider_common.minValueProperty?.getDefault)?.key ?? "undefined")) {
245
245
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_minValue() }
246
246
  }
247
- if key == ((Core_ui_slider_slider_common.minValueProperty?.setNative)?.key ?? "undefined") {
247
+ if key == (try? ((Core_ui_slider_slider_common.minValueProperty?.setNative)?.key ?? "undefined")) {
248
248
  return { __this, __a in
249
249
  try (jsCastPresent(__this) as Slider).symbol_setNative_minValue((try jsConvertedNumber(jsArg(__a, 0))))
250
250
  return nil
251
251
  }
252
252
  }
253
- if key == ((Core_ui_slider_slider_common.maxValueProperty?.getDefault)?.key ?? "undefined") {
253
+ if key == (try? ((Core_ui_slider_slider_common.maxValueProperty?.getDefault)?.key ?? "undefined")) {
254
254
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_maxValue() }
255
255
  }
256
- if key == ((Core_ui_slider_slider_common.maxValueProperty?.setNative)?.key ?? "undefined") {
256
+ if key == (try? ((Core_ui_slider_slider_common.maxValueProperty?.setNative)?.key ?? "undefined")) {
257
257
  return { __this, __a in
258
258
  try (jsCastPresent(__this) as Slider).symbol_setNative_maxValue((try jsConvertedNumber(jsArg(__a, 0))))
259
259
  return nil
260
260
  }
261
261
  }
262
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
262
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
263
263
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_color() }
264
264
  }
265
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
265
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
266
266
  return { __this, __a in
267
267
  try (jsCastPresent(__this) as Slider).symbol_setNative_color(jsArg(__a, 0))
268
268
  return nil
269
269
  }
270
270
  }
271
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
271
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
272
272
  return { __this, __a in return try (jsCastPresent(__this) as Slider).symbol_getDefault_backgroundColor() }
273
273
  }
274
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
274
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
275
275
  return { __this, __a in
276
276
  try (jsCastPresent(__this) as Slider).symbol_setNative_backgroundColor(jsArg(__a, 0))
277
277
  return nil
278
278
  }
279
279
  }
280
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
280
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
281
+ {
281
282
  return { __this, __a in
282
283
  return try (jsCastPresent(__this) as Slider).symbol_getDefault_backgroundInternal_Slider()
283
284
  }
284
285
  }
285
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
286
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
287
+ {
286
288
  return { __this, __a in
287
289
  try (jsCastPresent(__this) as Slider).symbol_setNative_backgroundInternal_Slider(
288
290
  (try jsCast(jsArg(__a, 0), Background.self)))
@@ -333,21 +333,22 @@ open class SplitView: SplitViewBase {
333
333
  }
334
334
  #sourceLocation()
335
335
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
336
- if key == ((Core_ui_split_view_split_view_common.displayModeProperty?.setNative)?.key ?? "undefined") {
336
+ if key == (try? ((Core_ui_split_view_split_view_common.displayModeProperty?.setNative)?.key ?? "undefined")) {
337
337
  return { __this, __a in
338
338
  try (jsCastPresent(__this) as SplitView).symbol_setNative_displayMode("")
339
339
  return nil
340
340
  }
341
341
  }
342
- if key == ((Core_ui_split_view_split_view_common.splitBehaviorProperty?.setNative)?.key ?? "undefined") {
342
+ if key == (try? ((Core_ui_split_view_split_view_common.splitBehaviorProperty?.setNative)?.key ?? "undefined")) {
343
343
  return { __this, __a in
344
344
  try (jsCastPresent(__this) as SplitView).symbol_setNative_splitBehavior("")
345
345
  return nil
346
346
  }
347
347
  }
348
348
  if key
349
- == ((Core_ui_split_view_split_view_common.preferredPrimaryColumnWidthFractionProperty?.setNative)?.key
350
- ?? "undefined")
349
+ == (try?
350
+ ((Core_ui_split_view_split_view_common.preferredPrimaryColumnWidthFractionProperty?.setNative)?.key
351
+ ?? "undefined"))
351
352
  {
352
353
  return { __this, __a in
353
354
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredPrimaryColumnWidthFraction(0)
@@ -355,8 +356,9 @@ open class SplitView: SplitViewBase {
355
356
  }
356
357
  }
357
358
  if key
358
- == ((Core_ui_split_view_split_view_common.preferredSupplementaryColumnWidthFractionProperty?.setNative)?.key
359
- ?? "undefined")
359
+ == (try?
360
+ ((Core_ui_split_view_split_view_common.preferredSupplementaryColumnWidthFractionProperty?.setNative)?
361
+ .key ?? "undefined"))
360
362
  {
361
363
  return { __this, __a in
362
364
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredSupplementaryColumnWidthFraction(0)
@@ -364,15 +366,18 @@ open class SplitView: SplitViewBase {
364
366
  }
365
367
  }
366
368
  if key
367
- == ((Core_ui_split_view_split_view_common.preferredInspectorColumnWidthFractionProperty?.setNative)?.key
368
- ?? "undefined")
369
+ == (try?
370
+ ((Core_ui_split_view_split_view_common.preferredInspectorColumnWidthFractionProperty?.setNative)?.key
371
+ ?? "undefined"))
369
372
  {
370
373
  return { __this, __a in
371
374
  try (jsCastPresent(__this) as SplitView).symbol_setNative_preferredInspectorColumnWidthFraction(0)
372
375
  return nil
373
376
  }
374
377
  }
375
- if key == ((Core_ui_split_view_split_view_common.navigationBarTintColorProperty?.setNative)?.key ?? "undefined")
378
+ if key
379
+ == (try?
380
+ ((Core_ui_split_view_split_view_common.navigationBarTintColorProperty?.setNative)?.key ?? "undefined"))
376
381
  {
377
382
  return { __this, __a in
378
383
  try (jsCastPresent(__this) as SplitView).symbol_setNative_navigationBarTintColor(nil)
@@ -178,49 +178,51 @@ open class Switch: SwitchBase {
178
178
  }
179
179
  #sourceLocation()
180
180
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
181
- if key == ((Core_ui_switch_switch_common.checkedProperty?.getDefault)?.key ?? "undefined") {
181
+ if key == (try? ((Core_ui_switch_switch_common.checkedProperty?.getDefault)?.key ?? "undefined")) {
182
182
  return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_checked() }
183
183
  }
184
- if key == ((Core_ui_switch_switch_common.checkedProperty?.setNative)?.key ?? "undefined") {
184
+ if key == (try? ((Core_ui_switch_switch_common.checkedProperty?.setNative)?.key ?? "undefined")) {
185
185
  return { __this, __a in
186
186
  try (jsCastPresent(__this) as Switch).symbol_setNative_checked((try jsConvertedBool(jsArg(__a, 0))))
187
187
  return nil
188
188
  }
189
189
  }
190
- if key == ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined") {
190
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.getDefault)?.key ?? "undefined")) {
191
191
  return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_color() }
192
192
  }
193
- if key == ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined") {
193
+ if key == (try? ((Core_ui_styling_style_properties.colorProperty?.setNative)?.key ?? "undefined")) {
194
194
  return { __this, __a in
195
195
  try (jsCastPresent(__this) as Switch).symbol_setNative_color(jsArg(__a, 0))
196
196
  return nil
197
197
  }
198
198
  }
199
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined") {
199
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.getDefault)?.key ?? "undefined")) {
200
200
  return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_backgroundColor() }
201
201
  }
202
- if key == ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined") {
202
+ if key == (try? ((Core_ui_styling_style_properties.backgroundColorProperty?.setNative)?.key ?? "undefined")) {
203
203
  return { __this, __a in
204
204
  try (jsCastPresent(__this) as Switch).symbol_setNative_backgroundColor(jsArg(__a, 0))
205
205
  return nil
206
206
  }
207
207
  }
208
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
208
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined"))
209
+ {
209
210
  return { __this, __a in
210
211
  return try (jsCastPresent(__this) as Switch).symbol_getDefault_backgroundInternal_Switch()
211
212
  }
212
213
  }
213
- if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
214
+ if key == (try? ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined"))
215
+ {
214
216
  return { __this, __a in
215
217
  try (jsCastPresent(__this) as Switch).symbol_setNative_backgroundInternal_Switch(nil)
216
218
  return nil
217
219
  }
218
220
  }
219
- if key == ((Core_ui_switch_switch_common.offBackgroundColorProperty?.getDefault)?.key ?? "undefined") {
221
+ if key == (try? ((Core_ui_switch_switch_common.offBackgroundColorProperty?.getDefault)?.key ?? "undefined")) {
220
222
  return { __this, __a in return try (jsCastPresent(__this) as Switch).symbol_getDefault_offBackgroundColor()
221
223
  }
222
224
  }
223
- if key == ((Core_ui_switch_switch_common.offBackgroundColorProperty?.setNative)?.key ?? "undefined") {
225
+ if key == (try? ((Core_ui_switch_switch_common.offBackgroundColorProperty?.setNative)?.key ?? "undefined")) {
224
226
  return { __this, __a in
225
227
  try (jsCastPresent(__this) as Switch).symbol_setNative_offBackgroundColor(jsArg(__a, 0))
226
228
  return nil
@@ -499,7 +499,7 @@ open class TabViewItem: TabViewItemBase {
499
499
  }
500
500
  #sourceLocation()
501
501
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
502
- if key == ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined") {
502
+ if key == (try? ((Core_ui_text_base_text_base_common.textTransformProperty?.setNative)?.key ?? "undefined")) {
503
503
  return { __this, __a in
504
504
  try (jsCastPresent(__this) as TabViewItem).symbol_setNative_textTransform("")
505
505
  return nil
@@ -887,17 +887,17 @@ open class TabView: TabViewBase {
887
887
  }
888
888
  #sourceLocation()
889
889
  open override func jsSymbolMethod(_ key: String) -> JSMethod? {
890
- if key == ((Core_ui_tab_view_tab_view_common.selectedIndexProperty?.setNative)?.key ?? "undefined") {
890
+ if key == (try? ((Core_ui_tab_view_tab_view_common.selectedIndexProperty?.setNative)?.key ?? "undefined")) {
891
891
  return { __this, __a in
892
892
  try (jsCastPresent(__this) as TabView).symbol_setNative_selectedIndex(
893
893
  (try jsConvertedNumber(jsArg(__a, 0))))
894
894
  return nil
895
895
  }
896
896
  }
897
- if key == ((Core_ui_tab_view_tab_view_common.itemsProperty?.getDefault)?.key ?? "undefined") {
897
+ if key == (try? ((Core_ui_tab_view_tab_view_common.itemsProperty?.getDefault)?.key ?? "undefined")) {
898
898
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_items() }
899
899
  }
900
- if key == ((Core_ui_tab_view_tab_view_common.itemsProperty?.setNative)?.key ?? "undefined") {
900
+ if key == (try? ((Core_ui_tab_view_tab_view_common.itemsProperty?.setNative)?.key ?? "undefined")) {
901
901
  return { __this, __a in
902
902
  try (jsCastPresent(__this) as TabView).symbol_setNative_items(
903
903
  try jsArrayOrNil(
@@ -905,83 +905,99 @@ open class TabView: TabViewBase {
905
905
  return nil
906
906
  }
907
907
  }
908
- if key == ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.getDefault)?.key ?? "undefined") {
908
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.getDefault)?.key ?? "undefined")) {
909
909
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabTextFontSize() }
910
910
  }
911
- if key == ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.setNative)?.key ?? "undefined") {
911
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextFontSizeProperty?.setNative)?.key ?? "undefined")) {
912
912
  return { __this, __a in
913
913
  try (jsCastPresent(__this) as TabView).symbol_setNative_tabTextFontSize(nil)
914
914
  return nil
915
915
  }
916
916
  }
917
- if key == ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.getDefault)?.key ?? "undefined") {
917
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.getDefault)?.key ?? "undefined")) {
918
918
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabTextColor() }
919
919
  }
920
- if key == ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.setNative)?.key ?? "undefined") {
920
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabTextColorProperty?.setNative)?.key ?? "undefined")) {
921
921
  return { __this, __a in
922
922
  try (jsCastPresent(__this) as TabView).symbol_setNative_tabTextColor(nil)
923
923
  return nil
924
924
  }
925
925
  }
926
- if key == ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.getDefault)?.key ?? "undefined") {
926
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.getDefault)?.key ?? "undefined"))
927
+ {
927
928
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_tabBackgroundColor()
928
929
  }
929
930
  }
930
- if key == ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.setNative)?.key ?? "undefined") {
931
+ if key == (try? ((Core_ui_tab_view_tab_view_common.tabBackgroundColorProperty?.setNative)?.key ?? "undefined"))
932
+ {
931
933
  return { __this, __a in
932
934
  try (jsCastPresent(__this) as TabView).symbol_setNative_tabBackgroundColor(jsArg(__a, 0))
933
935
  return nil
934
936
  }
935
937
  }
936
- if key == ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.getDefault)?.key ?? "undefined") {
938
+ if key
939
+ == (try? ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.getDefault)?.key ?? "undefined"))
940
+ {
937
941
  return { __this, __a in
938
942
  return try (jsCastPresent(__this) as TabView).symbol_getDefault_selectedTabTextColor()
939
943
  }
940
944
  }
941
- if key == ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.setNative)?.key ?? "undefined") {
945
+ if key
946
+ == (try? ((Core_ui_tab_view_tab_view_common.selectedTabTextColorProperty?.setNative)?.key ?? "undefined"))
947
+ {
942
948
  return { __this, __a in
943
949
  try (jsCastPresent(__this) as TabView).symbol_setNative_selectedTabTextColor(jsArg(__a, 0))
944
950
  return nil
945
951
  }
946
952
  }
947
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined") {
953
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.getDefault)?.key ?? "undefined")) {
948
954
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_fontInternal() }
949
955
  }
950
- if key == ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined") {
956
+ if key == (try? ((Core_ui_styling_style_properties.fontInternalProperty?.setNative)?.key ?? "undefined")) {
951
957
  return { __this, __a in
952
958
  try (jsCastPresent(__this) as TabView).symbol_setNative_fontInternal(nil)
953
959
  return nil
954
960
  }
955
961
  }
956
- if key == ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined") {
962
+ if key
963
+ == (try? ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.getDefault)?.key ?? "undefined"))
964
+ {
957
965
  return { __this, __a in
958
966
  return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosIconRenderingMode()
959
967
  }
960
968
  }
961
- if key == ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined") {
969
+ if key
970
+ == (try? ((Core_ui_tab_view_tab_view_common.iosIconRenderingModeProperty?.setNative)?.key ?? "undefined"))
971
+ {
962
972
  return { __this, __a in
963
973
  try (jsCastPresent(__this) as TabView).symbol_setNative_iosIconRenderingMode("")
964
974
  return nil
965
975
  }
966
976
  }
967
- if key == ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.getDefault)?.key ?? "undefined") {
977
+ if key == (try? ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.getDefault)?.key ?? "undefined"))
978
+ {
968
979
  return { __this, __a in return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosBottomAccessory()
969
980
  }
970
981
  }
971
- if key == ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.setNative)?.key ?? "undefined") {
982
+ if key == (try? ((Core_ui_tab_view_tab_view_common.iosBottomAccessoryProperty?.setNative)?.key ?? "undefined"))
983
+ {
972
984
  return { __this, __a in
973
985
  try (jsCastPresent(__this) as TabView).symbol_setNative_iosBottomAccessory(
974
986
  (try jsCast(jsArg(__a, 0), View.self)))
975
987
  return nil
976
988
  }
977
989
  }
978
- if key == ((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.getDefault)?.key ?? "undefined")
990
+ if key
991
+ == (try?
992
+ ((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.getDefault)?.key ?? "undefined"))
979
993
  {
980
994
  return { __this, __a in
981
995
  return try (jsCastPresent(__this) as TabView).symbol_getDefault_iosTabBarMinimizeBehavior()
982
996
  }
983
997
  }
984
- if key == ((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.setNative)?.key ?? "undefined")
998
+ if key
999
+ == (try?
1000
+ ((Core_ui_tab_view_tab_view_common.iosTabBarMinimizeBehaviorProperty?.setNative)?.key ?? "undefined"))
985
1001
  {
986
1002
  return { __this, __a in
987
1003
  try (jsCastPresent(__this) as TabView).symbol_setNative_iosTabBarMinimizeBehavior(
@@ -245,7 +245,7 @@ open class FormattedString: ViewBase {
245
245
  #sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:115)
246
246
  if jsStringEquals(name, "spans") {
247
247
  #sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:116)
248
- _ = try jsUnwrap(self.spans, "push").push(JSArray<Span>(Array(jsIterated(value, "value is not iterable"))))
248
+ _ = try jsUnwrap(self.spans, "push").push(JSArray<Any?>(Array(jsIterated(value, "value is not iterable"))))
249
249
  }
250
250
  }
251
251
  #sourceLocation()
@@ -253,7 +253,7 @@ open class FormattedString: ViewBase {
253
253
  #sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:121)
254
254
  if value is Span {
255
255
  #sourceLocation(file:"@nativescript/core/ui.text-base.formatted-string.ts",line:122)
256
- _ = try jsUnwrap(self.spans, "push").push(JSArray<Span>([(jsCastPresent(value) as Span)]))
256
+ _ = try jsUnwrap(self.spans, "push").push(JSArray<Any?>([(jsCastPresent(value) as Span)]))
257
257
  }
258
258
  }
259
259
  #sourceLocation()