@nstudio/nativescript-compiler 0.0.0-stage → 9.2.0-alpha.9
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.
- package/LICENSE +19 -0
- package/README.md +72 -2
- package/bin/build-dist.mjs +145 -0
- package/bin/ns-compiled-adapter.js +46 -0
- package/bin/ns-compiled-doctor.js +15 -0
- package/bin/ns-compiled-retrace.js +16 -0
- package/bin/ns-compiled-verify.js +15 -0
- package/bin/ns-compiled.js +26 -0
- package/bin/strip-types.js +18 -0
- package/config.d.ts +41 -0
- package/dist/adapters/active.js +59 -0
- package/dist/adapters/first-party.js +12 -0
- package/dist/adapters/framework.js +135 -0
- package/dist/adapters/hooks.js +115 -0
- package/dist/adapters/load.js +188 -0
- package/dist/api/adapter-api.js +2 -0
- package/dist/api/binding-api.js +11 -0
- package/dist/api/elements.js +21 -0
- package/dist/api/ir.js +29 -0
- package/dist/api/listview.js +27 -0
- package/dist/api/rewrite.js +98 -0
- package/dist/api/typescript-internal.d.ts +35 -0
- package/dist/cli/commands/compile-android.cjs +79 -0
- package/dist/cli/commands/compile-doctor.cjs +45 -0
- package/dist/cli/commands/compile-ios.cjs +77 -0
- package/dist/cli/commands/compile-retrace.cjs +40 -0
- package/dist/cli/commands/compile-verify.cjs +73 -0
- package/dist/cli/contracts.cjs +36 -0
- package/dist/cli/runtime.cjs +166 -0
- package/dist/css/css.js +118 -0
- package/dist/css/worker.js +242 -0
- package/dist/driver/cli.js +95 -0
- package/dist/driver/compile.js +571 -0
- package/dist/driver/contract.js +136 -0
- package/dist/driver/mirror.js +71 -0
- package/dist/driver/paths.js +19 -0
- package/dist/driver/preflight.js +206 -0
- package/dist/driver/toolchain.js +46 -0
- package/dist/driver/unimplemented.js +326 -0
- package/dist/kit/core-source.js +107 -0
- package/dist/kit/kit-index.js +105 -0
- package/dist/kit/manifest.js +468 -0
- package/dist/kit/overlay.js +56 -0
- package/dist/kit/swift-declarations.js +643 -0
- package/dist/kotlin/access.js +624 -0
- package/dist/kotlin/app-modules.js +111 -0
- package/dist/kotlin/arguments.js +397 -0
- package/dist/kotlin/assignment.js +226 -0
- package/dist/kotlin/builtins.js +575 -0
- package/dist/kotlin/calls.js +516 -0
- package/dist/kotlin/checked.js +61 -0
- package/dist/kotlin/class-accessors.js +129 -0
- package/dist/kotlin/class-constructor.js +117 -0
- package/dist/kotlin/class-declaration.js +308 -0
- package/dist/kotlin/class-fields.js +361 -0
- package/dist/kotlin/class-methods.js +213 -0
- package/dist/kotlin/classes.js +333 -0
- package/dist/kotlin/components.js +445 -0
- package/dist/kotlin/construction.js +228 -0
- package/dist/kotlin/control-flow.js +188 -0
- package/dist/kotlin/conversion.js +513 -0
- package/dist/kotlin/core-api.js +762 -0
- package/dist/kotlin/core-index.js +228 -0
- package/dist/kotlin/declarations.js +461 -0
- package/dist/kotlin/diagnostics.js +28 -0
- package/dist/kotlin/expression-statements.js +227 -0
- package/dist/kotlin/expressions.js +461 -0
- package/dist/kotlin/functions.js +474 -0
- package/dist/kotlin/global-calls.js +307 -0
- package/dist/kotlin/install.js +89 -0
- package/dist/kotlin/key-plans.js +117 -0
- package/dist/kotlin/kit-gen.js +581 -0
- package/dist/kotlin/ktfmt.js +60 -0
- package/dist/kotlin/library.js +62 -0
- package/dist/kotlin/literals.js +593 -0
- package/dist/kotlin/loops.js +184 -0
- package/dist/kotlin/mixins.js +103 -0
- package/dist/kotlin/modules.js +769 -0
- package/dist/kotlin/names.js +274 -0
- package/dist/kotlin/narrowing.js +180 -0
- package/dist/kotlin/native/api.js +117 -0
- package/dist/kotlin/native/bridging.js +254 -0
- package/dist/kotlin/native/calls.js +408 -0
- package/dist/kotlin/native/classfiles.js +524 -0
- package/dist/kotlin/native/classpath.js +32 -0
- package/dist/kotlin/native/conversions.js +280 -0
- package/dist/kotlin/native/extend.js +302 -0
- package/dist/kotlin/native/members.js +240 -0
- package/dist/kotlin/native/overloads.js +253 -0
- package/dist/kotlin/native/subclasses.js +378 -0
- package/dist/kotlin/native/types.js +421 -0
- package/dist/kotlin/operators.js +445 -0
- package/dist/kotlin/optional-chains.js +279 -0
- package/dist/kotlin/overrides.js +825 -0
- package/dist/kotlin/placement.js +746 -0
- package/dist/kotlin/prototype-calls.js +154 -0
- package/dist/kotlin/render.js +363 -0
- package/dist/kotlin/state-backend.js +123 -0
- package/dist/kotlin/statements.js +426 -0
- package/dist/kotlin/static-calls.js +296 -0
- package/dist/kotlin/syntax.js +689 -0
- package/dist/kotlin/translator-types.js +1 -0
- package/dist/kotlin/translator.js +806 -0
- package/dist/kotlin/type-facts.js +414 -0
- package/dist/kotlin/type-tests.js +250 -0
- package/dist/kotlin/types.js +655 -0
- package/dist/kotlin/untyped-values.js +354 -0
- package/dist/plugins/bindings-android.js +69 -0
- package/dist/plugins/bindings.js +93 -0
- package/dist/plugins/native-android.js +582 -0
- package/dist/plugins/native-ios.js +632 -0
- package/dist/plugins/resolve.js +108 -0
- package/dist/plugins/source.js +1040 -0
- package/dist/program/app-modules.js +52 -0
- package/dist/program/app-paths.js +60 -0
- package/dist/program/build-caches.js +14 -0
- package/dist/program/build-context.js +48 -0
- package/dist/program/constructor-factories.js +134 -0
- package/dist/program/core-facts.js +151 -0
- package/dist/program/core-patches.js +59 -0
- package/dist/program/env.js +4 -0
- package/dist/program/module-order.js +123 -0
- package/dist/program/order.js +23 -0
- package/dist/program/patterns.js +99 -0
- package/dist/program/platform.js +401 -0
- package/dist/program/program.js +726 -0
- package/dist/program/properties.js +61 -0
- package/dist/program/reach.js +444 -0
- package/dist/program/source-lines.js +268 -0
- package/dist/program/stable-names.js +112 -0
- package/dist/semantics/apis/api.js +31 -0
- package/dist/semantics/apis/array.js +69 -0
- package/dist/semantics/apis/bigint.js +53 -0
- package/dist/semantics/apis/console.js +29 -0
- package/dist/semantics/apis/date.js +7 -0
- package/dist/semantics/apis/globals.js +40 -0
- package/dist/semantics/apis/json.js +6 -0
- package/dist/semantics/apis/mapset.js +21 -0
- package/dist/semantics/apis/math.js +48 -0
- package/dist/semantics/apis/number.js +33 -0
- package/dist/semantics/apis/object.js +25 -0
- package/dist/semantics/apis/operators.js +316 -0
- package/dist/semantics/apis/promise.js +22 -0
- package/dist/semantics/apis/regexp.js +15 -0
- package/dist/semantics/apis/statics.js +61 -0
- package/dist/semantics/apis/string.js +45 -0
- package/dist/semantics/ast.js +315 -0
- package/dist/semantics/async.js +582 -0
- package/dist/semantics/class-plan.js +168 -0
- package/dist/semantics/classes.js +425 -0
- package/dist/semantics/config.js +29 -0
- package/dist/semantics/constant-init.js +107 -0
- package/dist/semantics/conversion.js +255 -0
- package/dist/semantics/decision-trace.js +304 -0
- package/dist/semantics/facts.js +433 -0
- package/dist/semantics/forms/by-name.js +338 -0
- package/dist/semantics/forms/flow.js +336 -0
- package/dist/semantics/forms/forms.js +311 -0
- package/dist/semantics/forms/observers.js +513 -0
- package/dist/semantics/forms/open.js +218 -0
- package/dist/semantics/forms/place-calls.js +387 -0
- package/dist/semantics/forms/placements.js +296 -0
- package/dist/semantics/forms/results.js +307 -0
- package/dist/semantics/forms/union-find.js +157 -0
- package/dist/semantics/globals.js +46 -0
- package/dist/semantics/lang/arrays.js +238 -0
- package/dist/semantics/lang/fields.js +211 -0
- package/dist/semantics/lang/members.js +277 -0
- package/dist/semantics/lang/prototypes.js +180 -0
- package/dist/semantics/lang/this-args.js +189 -0
- package/dist/semantics/lang.js +232 -0
- package/dist/semantics/ledger.js +157 -0
- package/dist/semantics/limits.js +11 -0
- package/dist/semantics/losses.js +201 -0
- package/dist/semantics/lowering-methods.js +42 -0
- package/dist/semantics/marks.js +39 -0
- package/dist/semantics/nullish.js +918 -0
- package/dist/semantics/observers.js +1 -0
- package/dist/semantics/placement.js +698 -0
- package/dist/semantics/platform-globals.js +20 -0
- package/dist/semantics/read-sites.js +29 -0
- package/dist/semantics/refusals.js +206 -0
- package/dist/semantics/refuse-construction.js +64 -0
- package/dist/semantics/refuse-receivers.js +189 -0
- package/dist/semantics/refuse-scope.js +82 -0
- package/dist/semantics/regexp.js +219 -0
- package/dist/semantics/result-shapes.js +203 -0
- package/dist/semantics/runtime.js +482 -0
- package/dist/semantics/shape-defined-keys.js +146 -0
- package/dist/semantics/shape-instance-keys.js +230 -0
- package/dist/semantics/shape-map.js +72 -0
- package/dist/semantics/shapes.js +660 -0
- package/dist/semantics/sharing.js +406 -0
- package/dist/semantics/signals.js +166 -0
- package/dist/semantics/spelled.js +45 -0
- package/dist/semantics/states/by-name.js +46 -0
- package/dist/semantics/states/elements.js +310 -0
- package/dist/semantics/states/fields.js +308 -0
- package/dist/semantics/states/foreign.js +208 -0
- package/dist/semantics/states/lenient.js +246 -0
- package/dist/semantics/states/missing.js +289 -0
- package/dist/semantics/states/nil.js +223 -0
- package/dist/semantics/states/parameters.js +191 -0
- package/dist/semantics/states/predicates.js +232 -0
- package/dist/semantics/states/reads.js +247 -0
- package/dist/semantics/states/results.js +113 -0
- package/dist/semantics/states/untrusted.js +141 -0
- package/dist/semantics/states/untyped.js +194 -0
- package/dist/semantics/states/value-states.js +422 -0
- package/dist/semantics/tdz.js +106 -0
- package/dist/semantics/threading.js +77 -0
- package/dist/semantics/throws.js +878 -0
- package/dist/semantics/top-names.js +59 -0
- package/dist/semantics/translator-methods.js +597 -0
- package/dist/semantics/trust.js +321 -0
- package/dist/semantics/type-methods.js +168 -0
- package/dist/semantics/type-step.js +116 -0
- package/dist/semantics/types.js +456 -0
- package/dist/semantics/worker-state.js +198 -0
- package/dist/swift/access.js +749 -0
- package/dist/swift/app-modules.js +41 -0
- package/dist/swift/arguments.js +236 -0
- package/dist/swift/assignment.js +270 -0
- package/dist/swift/availability.js +146 -0
- package/dist/swift/builtins.js +822 -0
- package/dist/swift/calls.js +493 -0
- package/dist/swift/casts.js +218 -0
- package/dist/swift/checked.js +433 -0
- package/dist/swift/class-accessors.js +139 -0
- package/dist/swift/class-constructor.js +139 -0
- package/dist/swift/class-declaration.js +282 -0
- package/dist/swift/class-fields.js +360 -0
- package/dist/swift/class-methods.js +229 -0
- package/dist/swift/classes.js +522 -0
- package/dist/swift/components.js +386 -0
- package/dist/swift/construction.js +287 -0
- package/dist/swift/control-flow.js +210 -0
- package/dist/swift/conversion.js +425 -0
- package/dist/swift/core-api.js +1068 -0
- package/dist/swift/declarations.js +389 -0
- package/dist/swift/enums.js +58 -0
- package/dist/swift/expression-statements.js +312 -0
- package/dist/swift/expressions.js +568 -0
- package/dist/swift/from-any.js +316 -0
- package/dist/swift/functions.js +487 -0
- package/dist/swift/generics.js +124 -0
- package/dist/swift/global-calls.js +217 -0
- package/dist/swift/install.js +109 -0
- package/dist/swift/key-plans.js +136 -0
- package/dist/swift/kit-gen.js +605 -0
- package/dist/swift/lenient.js +468 -0
- package/dist/swift/library.js +109 -0
- package/dist/swift/literals.js +509 -0
- package/dist/swift/loops.js +244 -0
- package/dist/swift/marks.js +212 -0
- package/dist/swift/members.js +253 -0
- package/dist/swift/method-values.js +177 -0
- package/dist/swift/mixins.js +113 -0
- package/dist/swift/modules.js +969 -0
- package/dist/swift/names.js +371 -0
- package/dist/swift/narrowing.js +170 -0
- package/dist/swift/native/api.js +269 -0
- package/dist/swift/native/bridging.js +240 -0
- package/dist/swift/native/calls.js +586 -0
- package/dist/swift/native/conversions.js +532 -0
- package/dist/swift/native/dispatch.js +218 -0
- package/dist/swift/native/members.js +416 -0
- package/dist/swift/native/sdk-tables.js +772 -0
- package/dist/swift/native/sdk-types.js +1 -0
- package/dist/swift/native/sdk.js +409 -0
- package/dist/swift/native/subclasses.js +533 -0
- package/dist/swift/object-classes.js +396 -0
- package/dist/swift/operators.js +571 -0
- package/dist/swift/optional-chains.js +405 -0
- package/dist/swift/parameters.js +210 -0
- package/dist/swift/placement.js +896 -0
- package/dist/swift/protocols.js +164 -0
- package/dist/swift/prototype-calls.js +227 -0
- package/dist/swift/render.js +385 -0
- package/dist/swift/results.js +370 -0
- package/dist/swift/state-backend.js +243 -0
- package/dist/swift/statements.js +505 -0
- package/dist/swift/static-calls.js +320 -0
- package/dist/swift/syntax.js +916 -0
- package/dist/swift/translator-types.js +1 -0
- package/dist/swift/translator.js +886 -0
- package/dist/swift/type-facts.js +539 -0
- package/dist/swift/type-tests.js +211 -0
- package/dist/swift/types.js +659 -0
- package/dist/targets/android/build.js +598 -0
- package/dist/targets/android/compose-mapping.js +218 -0
- package/dist/targets/android/deprecations.js +81 -0
- package/dist/targets/android/resources.js +80 -0
- package/dist/targets/ios/build.js +583 -0
- package/dist/targets/ios/core-native.js +149 -0
- package/dist/targets/ios/dependencies.js +464 -0
- package/dist/targets/ios/plist.js +127 -0
- package/dist/targets/ios/resources.js +285 -0
- package/dist/targets/ios/retrace.js +196 -0
- package/dist/targets/ios/signing.js +84 -0
- package/dist/targets/ios/xcodegen.js +39 -0
- package/dist/targets/resources.js +180 -0
- package/dist/template/model.js +38 -0
- package/dist/template/plan.js +576 -0
- package/dist/tools/doctor.js +172 -0
- package/dist/tools/retrace.js +116 -0
- package/dist/tools/verify.js +330 -0
- package/dist/types/adapter-api.d.ts +683 -0
- package/dist/types/binding-api.d.ts +48 -0
- package/dist/types/elements.d.ts +10 -0
- package/dist/types/ir.d.ts +245 -0
- package/dist/types/listview.d.ts +15 -0
- package/dist/types/rewrite.d.ts +18 -0
- package/dist/types/typescript-internal.d.ts +35 -0
- package/dist/xml/app.js +65 -0
- package/dist/xml/bindings.js +308 -0
- package/dist/xml/contexts.js +296 -0
- package/dist/xml/fold.js +170 -0
- package/dist/xml/keys.js +146 -0
- package/dist/xml/pages.js +550 -0
- package/dist/xml/plan.js +650 -0
- package/docs/CLI.md +131 -0
- package/docs/cli/compile-android.md +30 -0
- package/docs/cli/compile-doctor.md +18 -0
- package/docs/cli/compile-ios.md +30 -0
- package/docs/cli/compile-retrace.md +18 -0
- package/docs/cli/compile-verify.md +18 -0
- package/docs/cli/compile.md +15 -0
- package/kit-android/build.gradle.kts +65 -0
- package/kit-android/consumer-rules.pro +7 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Exports.kt +966 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +125 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +39497 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_abortsignal.kt +101 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/abortcontroller_index.kt +109 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +547 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_properties.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application.kt +2656 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +1932 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_shims.kt +111 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers.kt +198 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_scene_delegate_bridge.kt +233 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_application_settings_common.kt +28 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/application_settings_index.kt +188 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_common.kt +707 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +368 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_index.kt +37 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_known_colors.kt +418 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.FragmentClass.kt +287 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.NativeScriptActivity.kt +263 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/com.tns.OnBackPressedCallback.kt +116 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/connectivity_index.kt +289 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_animation_types.kt +56 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/core_types_validators.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSS3Parser.kt +954 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_CSSNativeScript.kt +205 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +270 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_parser.kt +885 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_system_classes.kt +98 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/css_value_reworkcss_value.kt +214 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +798 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +1175 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +271 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_file_system_access.kt +3828 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/file_system_index.kt +1669 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_fps_native.kt +177 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/fps_meter_index.kt +93 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/globals_global_utils.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_interfaces.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_http_request_common.kt +41 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +237 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_index.kt +155 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_image_asset_common.kt +201 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_asset_index.kt +119 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_image_source_common.kt +26 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/image_source_index.kt +846 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/js_libs_easysax_easysax.kt +1045 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +166 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +391 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_helpers.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_index.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_non_bundle_workflow_compat.kt +262 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/module_name_resolver_qualifier_matcher_index.kt +305 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window.kt +397 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_common.kt +685 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_native_window_interfaces.kt +51 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/native_window_window_base.kt +223 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_index.kt +4 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +755 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_stringify.kt +212 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_types.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptComponentCallbacks.kt +57 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +579 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_common.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_device_index.kt +251 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/platform_screen_index.kt +183 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/profiling_index.kt +485 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_formatted_string.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_index.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_span.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/text_text_common.kt +277 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/trace_index.kt +480 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_action_bar_common.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_action_bar_index.kt +1207 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_activity_indicator_common.kt +89 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_activity_indicator_index.kt +171 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_common.kt +518 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_animation_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_index.kt +1539 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_animation_keyframe_animation.kt +1081 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_binding_builder.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_component_builder_index.kt +487 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +1938 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_button_common.kt +70 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_button_index.kt +367 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_content_view_index.kt +220 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_expressions.kt +735 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_resources.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_bindable_types.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +4970 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1342 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_control_state_change_index.kt +52 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +3578 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_property_shared.kt +44 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +3261 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_utils.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_index.kt +4716 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_overflow_edges.kt +82 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_common.kt +3597 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_index.kt +134 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_common.kt +360 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_helper_view_helper_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_view_interfaces.kt +349 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +266 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_date_picker_common.kt +369 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_date_picker_index.kt +427 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_dialogs_common.kt +428 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_dialogs_index.kt +689 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_editable_text_base_common.kt +421 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_editable_text_base_index.kt +1140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_embedding_index.kt +34 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_enums.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_enums_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_activity.kt +210 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment.kt +88 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions.kt +1544 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_fragment_transitions_types.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_common.kt +1350 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_constants.kt +10 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helper_for_android.kt +615 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_helpers.kt +42 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_interfaces.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_frame_stack.kt +112 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_frame_index.kt +1890 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_common.kt +208 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_gestures_types.kt +348 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_index.kt +1785 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_gestures_touch_manager.kt +288 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_html_view_common.kt +121 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_html_view_index.kt +283 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_image_cache_common.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_cache_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_image_common.kt +574 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_index.kt +493 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects.kt +31 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_image_symbol_effects_common.kt +138 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_label_index.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_absolute_layout_common.kt +167 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_absolute_layout_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_dock_layout_common.kt +157 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_dock_layout_index.kt +124 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_flexbox_layout_common.kt +1004 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_flexbox_layout_index.kt +675 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_grid_layout_common.kt +1011 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_grid_layout_index.kt +450 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_index.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base.kt +123 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_layout_base_common.kt +442 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_container_liquid_glass_container_common.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_index.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_liquid_glass_liquid_glass_common.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_index.kt +556 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_common.kt +930 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_root_layout_root_layout_stack.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_index.kt +63 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_stack_layout_stack_layout_common.kt +83 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_index.kt +106 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_layouts_wrap_layout_wrap_layout_common.kt +185 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_picker_list_picker_common.kt +260 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_index.kt +2406 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_list_view_list_view_common.kt +912 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_events.kt +17 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_index.kt +241 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_page_page_common.kt +449 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_index.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_placeholder_placeholder_common.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_index.kt +204 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_progress_progress_common.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_proxy_view_container_index.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_repeater_index.kt +523 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_index.kt +400 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_scroll_view_scroll_view_common.kt +402 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_index.kt +711 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_search_bar_search_bar_common.kt +186 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_index.kt +774 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_segmented_bar_segmented_bar_common.kt +409 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_index.kt +477 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_slider_slider_common.kt +234 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_index.kt +25 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_split_view_split_view_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background.kt +268 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_background_common.kt +771 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_box_shadow.kt +108 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_clip_path_function.kt +129 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_converters.kt +92 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_animation_parser.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_selector.kt +3532 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_shadow.kt +38 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_stroke.kt +30 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_transform.kt +366 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_css_utils.kt +249 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font.kt +488 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_common.kt +446 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_font_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_length_shared.kt +264 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_linear_gradient.kt +136 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +1345 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +2907 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +3031 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_profile.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_styling_shared.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_index.kt +295 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_switch_switch_common.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_index.kt +1977 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_tab_view_tab_view_common.kt +902 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_formatted_string.kt +471 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_index.kt +1662 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_span.kt +284 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_base_text_base_common.kt +792 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_index.kt +211 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_field_text_field_common.kt +115 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_index.kt +94 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +140 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_index.kt +225 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_time_picker_time_picker_common.kt +699 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_fade_transition.kt +68 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_flip_transition.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_index.kt +160 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_modal_transition.kt +49 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_page_transition.kt +416 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition.kt +457 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_shared_transition_helper.kt +46 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_transition_slide_transition.kt +294 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_utils.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_index.kt +595 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_common.kt +209 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_web_view_web_view_interfaces.kt +6 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_animation_helpers.kt +76 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_common.kt +224 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_constants.kt +22 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug.kt +9 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_debug_source.kt +246 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_index.kt +296 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_index.kt +139 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_common.kt +61 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_layout_helper_layout_helper_shared.kt +23 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_lazy.kt +20 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_macrotask_scheduler.kt +45 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_mainthread_helper.kt +64 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_module_merge.kt +13 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper.kt +79 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_native_helper_for_android.kt +805 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_number_utils.kt +66 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_platform_check.kt +15 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_shared.kt +65 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_types.kt +229 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_utils_shared.kt +16 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/xml_index.kt +869 -0
- package/kit-android/generated/manifest.json +860 -0
- package/kit-android/generated/source-lines.json +1 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/kit-android/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/kit-android/gradlew +240 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_builder_index.kt +524 -0
- package/kit-android/overlays/xml-free/kotlin/org/nativescript/kit/ui_core_bindable_index.kt +1335 -0
- package/kit-android/overlays/xml-free/overlay.json +20 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/AnimationFrame.kt +68 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/CoreBridge.kt +302 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Modal.kt +61 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/NativeScriptApplication.kt +230 -0
- package/kit-android/src/fromcore/kotlin/org/nativescript/kit/Regions.kt +289 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ChangeDetection.kt +28 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/ColorMix.kt +643 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/JS.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/MainThread.kt +10 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/Signals.kt +866 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/UncaughtErrors.kt +51 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +731 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ArrayLike.kt +781 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/BigInt.kt +136 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CSSCalc.kt +109 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Collections.kt +426 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/CorePackages.kt +13 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Date.kt +573 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Dynamic.kt +668 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ES2023.kt +93 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ErrorOrigin.kt +17 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Errors.kt +270 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/HostObjects.kt +72 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Inspect.kt +814 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +651 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Iterators.kt +746 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +587 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +518 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Lowering.kt +70 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Number.kt +367 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Promise.kt +680 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +292 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Reactive.kt +36 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Realm.kt +85 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/RegExp.kt +2245 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ShortestDouble.kt +157 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +398 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/ThrownValue.kt +34 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Timers.kt +182 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/TypedArrays.kt +993 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/URI.kt +74 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +1237 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Views.kt +52 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Weak.kt +110 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/WinterTC.kt +356 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Workers.kt +312 -0
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +536 -0
- package/kit-apple/Overlays/xml-free/Core/ui.core.bindable.index.swift +1375 -0
- package/kit-apple/Overlays/xml-free/overlay.json +34 -0
- package/kit-apple/Package.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/AnimationFrame.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/AppModules.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/ApplicationDelegateClass.swift +273 -0
- package/kit-apple/Sources/NativeScriptKit/CSSCalc.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/ChangeDetection.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/ColorMix.swift +577 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity0.swift +1413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +6525 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +4713 -0
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +5428 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Accuracy_AndroidActionBarIconVisibility_AndroidActionItemPosition_AnimationCurve_AutocapitalizationType_BackgroundRepeat_and_26_more_630c32.swift +472 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ArrayExpression_BinaryExpression_CallExpression_ChainExpression_ConditionalExpression_Identifier_and_10_more_f883bf.swift +359 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Tab_NewLine_excl_quot_QUOT_num_and_287_more_88aef2.swift +2190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_Unknown_QuirksMode_IgnoreCase_CaseSensitive.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_b_c_d_tx_ty.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_l.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_h_s_v.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_a_r_g_b.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activate_deactivate_background_foreground_close_attached_and_26_more_127a37.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_activeType.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_alert_confirm_prompt_login_action.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_align_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_android_ios_visionos_apple.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_angle_colors.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_animations_completion.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_axis_value.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +257 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_body.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_boundsChanged_sizeChanged.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_callback_thisArg_once.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_collections_createUIDocumentInteractionControllerDelegate_getCurrentAppPath_getRootViewController_getVisibleViewController_getWindow_and_10_more_6713a9.swift +281 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_backgroundColor.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_color_offset.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_component_exports_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_connectionOptions.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_constructor_hasOwnProperty_isPrototypeOf_propertyIsEnumerable_toLocaleString_toString_and_21_more_e9ed9b.swift +331 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_content_statusCode_headers.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_closeCallback_fullscreen_animated_stretched.swift +149 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_context_parent_name_elementName_templateItems_errorFormat_sourceTracker_xmlModule.swift +185 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_counters_timeline.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_create.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_createSelector_SelectorCore_SimpleSelector_InvalidSelector_UniversalSelector_TypeSelector_and_12_more_71e044.swift +315 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_curve.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_affectsLayout.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_defaultValue_name_cssName_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_deg_rad_grad_turn.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_damping.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_repeatCount_delay_curve_propertyNameToAnimate_subPropertiesToAnimate_fromValue_toValue.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_duration_spring.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_edge_interaction.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_onCreate.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_effectType_targetView_toGlassStyleFn.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_empty_text_json_blob_arraybuffer.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enterFrom_exitTo.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_isBackNavigation_navigationType.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_entry_resolvedPage_navDepth_fragmentTag_frameId.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set_.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_enumerable_configurable_get_set__.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_android_ios_newValue_object.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_data.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount_.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_action_index_removed_addedCount__.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_android_ios_error.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_closeCallback.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_context_isBackNavigation.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssFile_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_cssText.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_data_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_error.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_count.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_cssFile.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_isBack_entry_fromEntry.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_error.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_key_image.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_matches_media.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_newValue.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_propertyName_value_oldValue.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_text_ios.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_type_view_ios.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_url_navigationType_error_.swift +160 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_viewController.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_view_context.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_newValue.swift +123 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_shortcutItem_completionHandler_.swift +158 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_uiWindow_connectionOptions_.swift +137 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_urlContexts_.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_window_scene_userActivity_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_rootView.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_type_object.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_window_object.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventType_position_prefix_namespace_elementName_attributes_data.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_exists_isDirectory.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_f_s_t_a.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_folder_path.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontFamily_fontSize_fontWeight_fontVariationSettings_isBold_isItalic.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_fontStyle_fontVariant_fontWeight.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_l.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_h_s_v.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_headers_timestamp_headersSize_method_postData_url.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_highlighted.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_horizontal_vertical.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_hour_minute.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_action.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_id_type_percent.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_import_type.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_color_values.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color.swift +147 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inset_offsetX_offsetY_blurRadius_spreadRadius_color_.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_instanceModule.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_instance_property_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveBegan_interactiveCancelled.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactiveCancelled.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_interactive_pageStart_pageEnd_pageOut_pageReturn_instance_activeType.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_inverse_type_features.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iosNotificationType_message.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_ios_scene.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_isMatch_getMatchOccurences_getMatchValue.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_iterator_prototype_for_keyFor_hasInstance_isConcatSpreadable_and_19_more_91b5f3.swift +413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_keepAspectRatio_autoScaleFactor.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_key_createView_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_launchData.swift +68 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_left_right_center_top_bottom.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_lifecycle_timeline.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_line_column.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_location_length.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_m.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_maskPath_shadowPath.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_matches_media.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_measuredWidth_measuredHeight.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_message.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_method_postData.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_modifier_property_value.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_create_transition.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_moduleName_transition.swift +76 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged.swift +103 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged_.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged__.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueChanged___.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_affectsLayout_valueConverter_valueChanged.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_defaultValue_valueConverter_valueChanged_.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueChanged_valueConverter_.swift +134 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_affectsLayout_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueChanged_valueConverter.swift +183 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter.swift +168 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_.swift +169 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter__.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_affectsLayout_valueConverter_valueChanged.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueChanged_valueConverter.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_equalityComparer_valueConverter.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter___.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_defaultValue_valueConverter_valueChanged.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_defaultValue_valueConverter.swift +129 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_equalityComparer_valueConverter.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter__.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter___.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter____.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_getter_converter_____.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged.swift +99 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_equalityComparer_valueConverter_.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueChanged_valueConverter.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter__.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_cssName_valueConverter_valueChanged.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue__.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue___.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_equalityComparer_valueConverter_valueChanged.swift +163 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_coerceValue_valueConverter.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueChanged_valueConverter.swift +124 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter__.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter___.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter____.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_affectsLayout_valueConverter_valueChanged.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueChanged_valueConverter.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_coerceValue_valueConverter_.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_coerceValue_valueChanged_valueConverter.swift +170 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueChanged.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter_.swift +139 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_equalityComparer_valueConverter__.swift +136 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_coerceValue_valueConverter.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_equalityComparer_valueConverter.swift +146 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter__.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter___.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter____.swift +128 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter_____.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueChanged_valueConverter______.swift +126 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter__.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter___.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter____.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_coerceValue.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_defaultValue_valueConverter_valueChanged_.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_duration.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter_.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_equalityComparer_valueConverter__.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_keyframes_mediaQueryString.swift +117 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged___.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_____.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged______.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_______.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged________.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_________.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged__________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter_.swift +119 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueChanged_valueConverter__.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_name_valueConverter__.swift +82 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_navigatingToEvent_navigatedToEvent_navigatingFromEvent_navigatedFromEvent.swift +116 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_normalState_selectedState.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_num_regexp_string_name_privateId_eof_and_71_more_93cbae.swift +688 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_propertyName_value_oldValue_origin.swift +154 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_object_eventName_scrollX_scrollY_.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_opacity_color_tapToClose_animation_ignoreShadeRestore.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_orientation_systemAppearance_.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_page_toPage_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_parent_name_items.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_path_name_extension.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_pattern_flags.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_position_systemIcon.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_prefix_namespace_name.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_presented_presenting_independent.swift +98 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_propName_propValue.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value__.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value___.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_____.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value______.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value_______.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_property_value________.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_r_g_b.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_cooked_.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString.swift +114 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_raw_requestURL_toNativeImage_toNativeString_.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_recognizer_target.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_repeatX_repeatY_posX_posY.swift +93 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_requestTime_proxyStart_proxyEnd_dnsStart_dnsEnd_connectStart_and_9_more_3e958e.swift +248 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_text.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_result_userName_password.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_right_left.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_row_col.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_rules_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_safeArea_fullscreen_inWindow.swift +107 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_translate_rotate.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scale_tx_ty.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sceneWillConnect_sceneDidActivate_sceneWillResignActive_sceneWillEnterForeground_sceneDidEnterBackground_sceneDidDisconnect_and_1_more_1be9d4.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_scene_uiWindow.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_shape_rule.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedElements_presented_presenting.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sharedTransitionTag_zIndex.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_showing.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_snap_endFrame_endCornerRadius_srcSharedView.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_expression_twoWay_source_defaultProperty.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_sourceProperty_targetProperty_expression_twoWay_compiled.swift +145 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_spans.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value__________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value___________.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value____________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value_____________.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_start_end_value______________.swift +90 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_headers.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_status_statusText_headers_url.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_targetProperty_sourceProperty.swift +73 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_backgroundColor_scale_translate_rotate_opacity_width_height_valueSource_duration_curve_forceLayer.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_opacity_backgroundColor_translate_scale_height_width_rotate_duration_delay_iterations_curve.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve_.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve__.swift +153 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_property_value_duration_delay_iterations_curve___.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_target_translate_scale_rotate_opacity_duration_curve.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_delay_velocity_animateOptions_animations_completion.swift +165 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_tension_friction_mass_velocity_delay_animations_completion.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_textColor_tintColor.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_text_iosFont_color_backgroundColor_textDecoration_baselineOffset_index.swift +144 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_cancelButtonText.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_inputType.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_cancelButtonText_message.swift +112 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_okButtonText_message.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_title_section.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toArrayBuffer_toString_toJSON_toImage_toFile.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_toString_charAt_charCodeAt_concat_indexOf_lastIndexOf_and_44_more_fc25df.swift +481 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_topLeft_topRight_bottomLeft_bottomRight.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_bottom.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_left_bottom_right.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left.swift +122 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_top_right_bottom_left_.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_totalTime_count_currentStart_runCount.swift +110 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_touches_event.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_transitionContext.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translateX_translateY_scaleX_scaleY_rotate_opacity_duration_curve.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_translate_rotate_scale.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_action_value_namespace_ignoreCase_.swift +133 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_data_.swift +92 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_namespace.swift +102 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_prelude_block.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text.swift +104 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_name_text_components.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_namespace.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_path.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_prelude_block.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_property_value.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_quote_string_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_selectors_declarations.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_left_right.swift +127 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_start_end_name.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_string_unit_value.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_stylesheet.swift +83 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_text_associatedToken_values.swift +125 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_direction_object_eventName.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_eventName_object_getPointerCount_getX_getY.swift +187 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName.swift +152 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_object_eventName_state.swift +167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_rotation_object_eventName_state.swift +182 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_scale_getFocusX_getFocusY_object_eventName_state.swift +194 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_type_view_ios_android_startX_startY_deltaX_deltaY_object_eventName_state.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_uri_message_time.swift +108 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_method.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_source_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_url_status_statusText_headers_mimeType_fromDiskCache_timing_headersSize.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_value_unit_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_index_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_isPresented_startFrame_snapshot_endFrame_startTransform_and_5_more_20e753.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_options_.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_snapshot_startOpacity_endOpacity_propertiesToMatch_zIndex.swift +186 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_startFrame_endFrame_startOpacity_endOpacity_propertiesToMatch_imageSourceChangeListener.swift +181 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_view_type_animation.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_color.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_.swift +95 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_width_height_os_deviceType.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_windowOpen_windowClose_primaryWindowChanged.swift +96 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary.swift +80 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_window_isPrimary_data_ios.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xRadius_yRadius_maxRadius.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y.swift +85 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y__.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y___.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y____.swift +86 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_____.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y______.swift +74 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_______.swift +89 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y________.swift +88 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_________.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_width_height.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_x_y_z_.swift +78 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xmlns.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_xs_ys_xt_yt_rx_ry_rz.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AndroidHelper.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.AnimationCurve.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Application.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.CSSType.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Device.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Dialogs.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.Enums.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.NativeWindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.PseudoClassHandler.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.SceneEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.WindowEvents.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._resolveAnimationCurve.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._setResolver.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export._updateCharactersInRangeReplacementString.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.action.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.addWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.alert.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.android.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidDynamicElevationOffsetProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.androidElevationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.animationTimingFunctionConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocapitalizationTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.autocorrectProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundImageProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundPositionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundRepeatProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.backgroundSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.booleanConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomLeftRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomRightRadiusProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderBottomWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderLeftWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderRightWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopColorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopLeftRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopRightRadiusProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.borderTopWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.clipPathProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.colorProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.columnGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.confirm.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.cornerShapeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.directionProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.discardedErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.displayedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.eachDescendant.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.editableProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.ensureA11yClasses.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.exitEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontFamilyProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontScaleInternalProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontSizeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontStyleProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontVariationSettingsProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fontWeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.foregroundEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObject.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.fromObjectRecursive.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAncestor.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getAndroidAccessibilityManager.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentFontScale.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getCurrentPage.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getFileAccess.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getMainEntry.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getNativeApplication.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayout.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootLayoutById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getTransformedText.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.getViewById.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasLaunched.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hasListeners.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.heightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.hintProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.horizontalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.inBackground.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.initAccessibilityCssHelper.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAccessibilityServiceEnabled.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isAndroid.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isApple.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isEmbedded.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isIOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isUserInteractionEnabledProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.isVisionOS.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.keyboardTypeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.launchEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirection.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.layoutDirectionChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.letterSpacingProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lineHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.loadAppCss.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.login.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.lowMemoryEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeParser.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.makeValidator.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.marginTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxLengthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.maxWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minHeightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.minWidthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.notify.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.off.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.on.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.opacityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientation.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.orientationChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingBottomProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingInternalProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingLeftProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingRightProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.paddingTopProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSShadow.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseCSSStroke.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.parseKeyframeDeclarations.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.perspectiveProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.placeholderColorProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.platformNames.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profile.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDisable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingDumpProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingEnable.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingIsRunning.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingResetProfiles.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStart.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStartCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStop.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingStopCPU.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.profilingUptime.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.prompt.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.querySelectorAll.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeTaggedAdditionalCSS.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.removeWeakEventListener.swift +22 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resetRootView.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resolveFileNameFromUrl.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.resumeEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.returnKeyTypeProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rotateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.rowGapProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.run.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sanitizeModuleName.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.scaleYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.sendAccessibilityEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setActivityCallbacks.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setAutoSystemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setCssFileName.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setMaxRefreshRate.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setNativeApp.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.setResources.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspendEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.suspended.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearance.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChanged.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.systemAppearanceChangedEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textDecorationProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textOverflowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textShadowProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textStrokeProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.textTransformProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.timeConverter.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateXProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.translateYProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.uncaughtErrorEvent.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.unsetValue.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateAccessibilityProperties.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateCurrentHelperClasses.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.updateTextTriggerProperty.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.verticalAlignmentProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.visibilityProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.whiteSpaceProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.widthProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Export.zIndexProperty.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Modules.swift +17 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Http.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/__Namespace.Utils.swift +201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.abortsignal.swift +109 -0
- package/kit-apple/Sources/NativeScriptKit/Core/abortcontroller.index.swift +118 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-common.swift +572 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.accessibility-properties.swift +258 -0
- package/kit-apple/Sources/NativeScriptKit/Core/accessibility.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.application-settings-common.swift +36 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application-settings.index.ios.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +2095 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-shims.swift +212 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +3854 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +224 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers.ios.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.index.ios.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.scene-delegate-bridge.swift +234 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-common.swift +756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.color-utils.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.index.ios.swift +100 -0
- package/kit-apple/Sources/NativeScriptKit/Core/color.known-colors.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +190 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.animation-types.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.index.swift +361 -0
- package/kit-apple/Sources/NativeScriptKit/Core/core-types.validators.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css-value.reworkcss-value.swift +280 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1012 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSSNativeScript.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +971 -0
- package/kit-apple/Sources/NativeScriptKit/Core/css.system-classes.swift +120 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +700 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable.index.swift +1166 -0
- package/kit-apple/Sources/NativeScriptKit/Core/data.virtual-array.index.swift +326 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fetch.index.swift +1201 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +1450 -0
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.index.swift +1756 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.fps-native.ios.swift +227 -0
- package/kit-apple/Sources/NativeScriptKit/Core/fps-meter.index.swift +141 -0
- package/kit-apple/Sources/NativeScriptKit/Core/globals.global-utils.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-interfaces.swift +24 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +413 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.http-request-common.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request.index.ios.swift +101 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.index.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.image-asset-common.swift +285 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-asset.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.image-source-common.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +1130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +1388 -0
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +30789 -0
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +3383 -0
- package/kit-apple/Sources/NativeScriptKit/Core/matrix.index.swift +151 -0
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +468 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.helpers.swift +57 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.index.swift +220 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.non-bundle-workflow-compat.swift +262 -0
- package/kit-apple/Sources/NativeScriptKit/Core/module-name-resolver.qualifier-matcher.index.swift +330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-common.swift +730 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window-interfaces.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +521 -0
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.window-base.swift +298 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +668 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +221 -0
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +62 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.common.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.device.index.ios.swift +289 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/platform.screen.index.ios.swift +217 -0
- package/kit-apple/Sources/NativeScriptKit/Core/profiling.index.swift +528 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.formatted-string.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.span.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/text.text-common.swift +309 -0
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +513 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.action-bar-common.swift +1270 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.action-bar.index.ios.swift +1480 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.activity-indicator-common.swift +81 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.activity-indicator.index.ios.swift +175 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-common.swift +581 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.animation-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +2204 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.keyframe-animation.swift +1213 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.binding-builder.swift +318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.component-builder.index.swift +387 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +2026 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.button-common.swift +75 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.button.index.ios.swift +614 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.content-view.index.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-expressions.swift +770 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-resources.swift +30 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.bindable-types.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.expression-parser.swift +5297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.bindable.index.swift +1376 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.control-state-change.index.ios.swift +197 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +3899 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.property-shared.swift +53 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +3522 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.utils.swift +32 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +3318 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +4347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.index.ios.swift +1417 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-common.swift +337 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-helper.view-helper-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-interfaces.swift +272 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.weak-event-listener.index.swift +323 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.date-picker-common.swift +335 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.date-picker.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.dialogs-common.swift +486 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.dialogs.index.ios.swift +677 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.editable-text-base-common.swift +378 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.editable-text-base.index.ios.swift +512 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.embedding.index.ios.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.enums.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.enums.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.ios.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.fragment.transitions.types.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +1526 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-constants.swift +21 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-helpers.swift +40 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-interfaces.swift +26 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-stack.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +1794 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-common.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.gestures-types.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.index.ios.swift +1453 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.gestures.touch-manager.swift +451 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.html-view-common.swift +106 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.html-view.index.ios.swift +301 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.image-cache-common.swift +479 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image-cache.index.ios.swift +232 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.image-common.swift +399 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.index.ios.swift +499 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects-common.swift +150 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.image.symbol-effects.ios.swift +148 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.label.index.ios.swift +483 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.absolute-layout-common.swift +172 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.absolute-layout.index.ios.swift +189 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.dock-layout-common.swift +157 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.dock-layout.index.ios.swift +264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.flexbox-layout-common.swift +1028 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +3238 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.grid-layout-common.swift +1014 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.grid-layout.index.ios.swift +2435 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.index.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base-common.swift +591 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.layout-base.ios.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.index.ios.swift +364 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass-container.liquid-glass-container-common.swift +49 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.index.ios.swift +238 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.liquid-glass.liquid-glass-common.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.index.ios.swift +347 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-common.swift +964 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.root-layout.root-layout-stack.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.index.ios.swift +350 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.stack-layout.stack-layout-common.swift +72 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.index.ios.swift +357 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.wrap-layout.wrap-layout-common.swift +188 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.index.ios.swift +374 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-picker.list-picker-common.swift +252 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.index.ios.swift +2611 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.list-view.list-view-common.swift +950 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.events.swift +23 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +1340 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.page-common.swift +520 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.index.swift +63 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.placeholder.placeholder-common.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.index.ios.swift +173 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.progress.progress-common.swift +111 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.proxy-view-container.index.swift +497 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +535 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.index.ios.swift +699 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.scroll-view.scroll-view-common.swift +414 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.index.ios.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.search-bar.search-bar-common.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.index.ios.swift +470 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.segmented-bar.segmented-bar-common.swift +448 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.index.ios.swift +593 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.slider.slider-common.swift +211 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +1459 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.split-view-common.swift +410 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background-common.swift +809 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2290 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.box-shadow.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +198 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.converters.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +493 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +4016 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-shadow.swift +48 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-stroke.swift +41 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-transform.swift +406 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-utils.swift +297 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +477 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font.ios.swift +416 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.length-shared.swift +343 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.linear-gradient.swift +162 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-properties.swift +2524 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +3330 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +905 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-profile.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.styling-shared.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.index.ios.swift +508 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.switch.switch-common.swift +143 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.index.ios.swift +2284 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.tab-view.tab-view-common.swift +985 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +801 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.index.ios.swift +1264 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.span.swift +476 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.text-base-common.swift +1046 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.index.ios.swift +912 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-field.text-field-common.swift +121 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.index.ios.swift +1030 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +138 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.index.ios.swift +473 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.time-picker.time-picker-common.swift +536 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.fade-transition.ios.swift +265 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +159 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +635 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +1167 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +3673 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition.swift +492 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.slide-transition.ios.swift +328 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.utils.ios.swift +132 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.index.ios.swift +827 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-common.swift +206 -0
- package/kit-apple/Sources/NativeScriptKit/Core/ui.web-view.web-view-interfaces.swift +16 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.animation-helpers.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.common.swift +278 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.constants.ios.swift +33 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +271 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.index.ios.swift +205 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.index.ios.swift +131 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-common.swift +87 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.layout-helper.layout-helper-shared.swift +28 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.lazy.swift +39 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.macrotask-scheduler.swift +71 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.mainthread-helper.ios.swift +52 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.module-merge.swift +27 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.native-helper.ios.swift +734 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.number-utils.swift +79 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.platform-check.swift +25 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.shared.swift +84 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.types.swift +308 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.utils-shared.swift +31 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +1726 -0
- package/kit-apple/Sources/NativeScriptKit/Core/xml.index.swift +775 -0
- package/kit-apple/Sources/NativeScriptKit/CoreBridge.swift +388 -0
- package/kit-apple/Sources/NativeScriptKit/CoreConnectivity.swift +46 -0
- package/kit-apple/Sources/NativeScriptKit/CoreLifetimes.swift +15 -0
- package/kit-apple/Sources/NativeScriptKit/CorePackages.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/JS.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Modal.swift +65 -0
- package/kit-apple/Sources/NativeScriptKit/Probe.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Regions.swift +291 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/AbsentModules.swift +64 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +1640 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ArrayLike.swift +859 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BigInt.swift +338 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/BuiltinValues.swift +45 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Collections.swift +609 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Date.swift +269 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +470 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/ES2023.swift +105 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Errors.swift +402 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Functions.swift +340 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Inspect.swift +758 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +42 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +728 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +898 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +874 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +588 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Native.swift +819 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/NativeStack.swift +66 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Number.swift +599 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Promise.swift +810 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +471 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Reactive.swift +34 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Record.swift +59 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExp.swift +576 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/RegExpEngine.swift +1918 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Stack.swift +20 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/StringUTF16.swift +179 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +142 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Threads.swift +275 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Timers.swift +240 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/TypedArrays.swift +996 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/URI.swift +94 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +2061 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +97 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Weak.swift +135 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/WinterTC.swift +484 -0
- package/kit-apple/Sources/NativeScriptKit/Signals.swift +952 -0
- package/kit-apple/Sources/NativeScriptKit/UncaughtErrors.swift +37 -0
- package/package.json +94 -4
- package/verify/ui-driver/Host/App.swift +7 -0
- package/verify/ui-driver/Tests/Driver.swift +54 -0
- package/verify/ui-driver/project.yml +35 -0
|
@@ -0,0 +1,3318 @@
|
|
|
1
|
+
// Generated from @nativescript/core by tools/kit: edit core, not this file.
|
|
2
|
+
|
|
3
|
+
import CFNetwork
|
|
4
|
+
import CoreFoundation
|
|
5
|
+
import CoreGraphics
|
|
6
|
+
import CoreServices
|
|
7
|
+
import CoreText
|
|
8
|
+
import Dispatch
|
|
9
|
+
import Foundation
|
|
10
|
+
import ObjectiveC
|
|
11
|
+
import Photos
|
|
12
|
+
import QuartzCore
|
|
13
|
+
import Symbols
|
|
14
|
+
import SystemConfiguration
|
|
15
|
+
import UIKit
|
|
16
|
+
import WebKit
|
|
17
|
+
|
|
18
|
+
open class View: ViewCommon {
|
|
19
|
+
nonisolated deinit {}
|
|
20
|
+
open var _popoverPresentationDelegate: Any? = nil {
|
|
21
|
+
didSet {
|
|
22
|
+
if jsMadeBits1 & (1 << 48) == 0 {
|
|
23
|
+
jsMadeNote(&jsMadeBits1, &jsMade, 1 << 48, "_popoverPresentationDelegate")
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
open var _adaptivePresentationDelegate: Any? = nil {
|
|
28
|
+
didSet {
|
|
29
|
+
if jsMadeBits1 & (1 << 49) == 0 {
|
|
30
|
+
jsMadeNote(&jsMadeBits1, &jsMade, 1 << 49, "_adaptivePresentationDelegate")
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
open var _transitioningDelegate: UIViewControllerTransitioningDelegateImpl? {
|
|
35
|
+
didSet {
|
|
36
|
+
if jsMadeBits1 & (1 << 50) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 50, "_transitioningDelegate") }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/// Track modal open animated options to use same option upon close
|
|
40
|
+
open var _modalAnimatedOptions: JSArray<Bool>? = JSArray<Bool>() {
|
|
41
|
+
didSet {
|
|
42
|
+
if jsMadeBits1 & (1 << 51) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 51, "_modalAnimatedOptions") }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
open var _isLaidOut: Bool = false
|
|
46
|
+
open var _isTransformed: Bool = false
|
|
47
|
+
open var _privateFlags: Double = jsBitOr(
|
|
48
|
+
Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED, Core_ui_core_view_index.PFLAG_FORCE_LAYOUT)
|
|
49
|
+
open var _cachedFrame: CGRect! {
|
|
50
|
+
didSet { if jsMadeBits1 & (1 << 52) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 52, "_cachedFrame") } }
|
|
51
|
+
}
|
|
52
|
+
open var _suspendCATransaction: Bool = false
|
|
53
|
+
private static let jsSite_View__nativeBackgroundState = JSReadSite("_nativeBackgroundState")
|
|
54
|
+
open var __own__nativeBackgroundState: String? = nil
|
|
55
|
+
/// Native background states.
|
|
56
|
+
/// - `unset` - is the default, from this state it transitions to "invalid" in the base backgroundInternalProperty.setNative, overriding it without calling `super` will prevent the background from ever being drawn.
|
|
57
|
+
/// - `invalid` - the view background must be redrawn on the next layot.
|
|
58
|
+
/// - `drawn` - the view background has been property drawn, on subsequent layouts it may need to be redrawn if the background depends on the view's size.
|
|
59
|
+
open var _nativeBackgroundState: String {
|
|
60
|
+
get {
|
|
61
|
+
if let v = __own__nativeBackgroundState { return v }
|
|
62
|
+
return jsLenientString(JSPrototypes.value(type(of: self), View.jsSite_View__nativeBackgroundState, self))
|
|
63
|
+
}
|
|
64
|
+
set {
|
|
65
|
+
__own__nativeBackgroundState = .some(newValue)
|
|
66
|
+
if jsMadeBits1 & (1 << 53) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 53, "_nativeBackgroundState") }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/// Glass effect configuration
|
|
70
|
+
open var _glassEffectView: UIVisualEffectView? {
|
|
71
|
+
didSet { if jsMadeBits1 & (1 << 54) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 54, "_glassEffectView") } }
|
|
72
|
+
}
|
|
73
|
+
open var _glassEffectMeasure: Any? = nil {
|
|
74
|
+
didSet { if jsMadeBits1 & (1 << 55) == 0 { jsMadeNote(&jsMadeBits1, &jsMade, 1 << 55, "_glassEffectMeasure") } }
|
|
75
|
+
}
|
|
76
|
+
public override init() throws {
|
|
77
|
+
try super.init()
|
|
78
|
+
jsMadeLevel(&jsMade, ["_isLaidOut", "_isTransformed", "_privateFlags", "_suspendCATransaction"])
|
|
79
|
+
}
|
|
80
|
+
open var nativeBackgroundState: String {
|
|
81
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:69)
|
|
82
|
+
return self._nativeBackgroundState
|
|
83
|
+
}
|
|
84
|
+
#sourceLocation()
|
|
85
|
+
open override var isLayoutRequired: Bool {
|
|
86
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:79)
|
|
87
|
+
return jsBitAnd(self._privateFlags, Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED)
|
|
88
|
+
== Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED
|
|
89
|
+
}
|
|
90
|
+
#sourceLocation()
|
|
91
|
+
open var isLayoutRequested: Bool {
|
|
92
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:83)
|
|
93
|
+
return jsBitAnd(self._privateFlags, Core_ui_core_view_index.PFLAG_FORCE_LAYOUT)
|
|
94
|
+
== Core_ui_core_view_index.PFLAG_FORCE_LAYOUT
|
|
95
|
+
}
|
|
96
|
+
#sourceLocation()
|
|
97
|
+
open override var isLayoutValid: Bool {
|
|
98
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:290)
|
|
99
|
+
if jsTruthy((self.nativeViewProtected as? UIView)) {
|
|
100
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:291)
|
|
101
|
+
return !self.isLayoutRequested
|
|
102
|
+
}
|
|
103
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:293)
|
|
104
|
+
return false
|
|
105
|
+
}
|
|
106
|
+
#sourceLocation()
|
|
107
|
+
open func symbol_getDefault_isEnabled() throws -> Bool {
|
|
108
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:714)
|
|
109
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
110
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:716)
|
|
111
|
+
return try ((nativeView is UIControl) ? jsUnwrap(nativeView as? UIControl, "enabled").isEnabled : true)
|
|
112
|
+
}
|
|
113
|
+
#sourceLocation()
|
|
114
|
+
open func symbol_setNative_isEnabled(_ value: Bool) throws {
|
|
115
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:719)
|
|
116
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
117
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:720)
|
|
118
|
+
if nativeView is UIControl {
|
|
119
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:721)
|
|
120
|
+
try jsUnwrap(nativeView as? UIControl, setting: "enabled").isEnabled = value
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
#sourceLocation()
|
|
124
|
+
open func symbol_getDefault_originX() throws -> Double {
|
|
125
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:726)
|
|
126
|
+
return try Double(
|
|
127
|
+
jsUnwrap(jsUnwrap(self.nativeViewProtected as? UIView, "layer").layer, "anchorPoint").anchorPoint.x)
|
|
128
|
+
}
|
|
129
|
+
#sourceLocation()
|
|
130
|
+
open func symbol_setNative_originX(_ value: Double) throws {
|
|
131
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:729)
|
|
132
|
+
try self.updateOriginPoint(value, self.originY)
|
|
133
|
+
}
|
|
134
|
+
#sourceLocation()
|
|
135
|
+
open func symbol_getDefault_originY() throws -> Double {
|
|
136
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:733)
|
|
137
|
+
return try Double(
|
|
138
|
+
jsUnwrap(jsUnwrap(self.nativeViewProtected as? UIView, "layer").layer, "anchorPoint").anchorPoint.y)
|
|
139
|
+
}
|
|
140
|
+
#sourceLocation()
|
|
141
|
+
open func symbol_setNative_originY(_ value: Double) throws {
|
|
142
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:736)
|
|
143
|
+
try self.updateOriginPoint(self.originX, value)
|
|
144
|
+
}
|
|
145
|
+
#sourceLocation()
|
|
146
|
+
open func symbol_setNative_testID(_ value: String) throws {
|
|
147
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:740)
|
|
148
|
+
try self.setAccessibilityIdentifier((self.nativeViewProtected as? UIView), value)
|
|
149
|
+
}
|
|
150
|
+
#sourceLocation()
|
|
151
|
+
open func symbol_setNative_accessibilityEnabled(_ value: Bool) throws {
|
|
152
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:751)
|
|
153
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "isAccessibilityElement").isAccessibilityElement =
|
|
154
|
+
value
|
|
155
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:753)
|
|
156
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
157
|
+
}
|
|
158
|
+
#sourceLocation()
|
|
159
|
+
open func symbol_getDefault_accessibilityIdentifier() throws -> String {
|
|
160
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:757)
|
|
161
|
+
return try
|
|
162
|
+
(jsUnwrap(self.nativeViewProtected as? UIView, "accessibilityIdentifier").accessibilityIdentifier
|
|
163
|
+
?? "undefined")
|
|
164
|
+
}
|
|
165
|
+
#sourceLocation()
|
|
166
|
+
open func symbol_setNative_accessibilityIdentifier(_ value: String) throws {
|
|
167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:761)
|
|
168
|
+
try self.setAccessibilityIdentifier((self.nativeViewProtected as? UIView), value)
|
|
169
|
+
}
|
|
170
|
+
#sourceLocation()
|
|
171
|
+
open func symbol_setNative_accessibilityRole(_ value: String) throws {
|
|
172
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:765)
|
|
173
|
+
self.accessibilityRole = value
|
|
174
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:766)
|
|
175
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
176
|
+
}
|
|
177
|
+
#sourceLocation()
|
|
178
|
+
open func symbol_setNative_accessibilityValue(_ value: String) throws {
|
|
179
|
+
var value = value
|
|
180
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:770)
|
|
181
|
+
value = "\(value)"
|
|
182
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:771)
|
|
183
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityValue").accessibilityValue = value
|
|
184
|
+
}
|
|
185
|
+
#sourceLocation()
|
|
186
|
+
open func symbol_setNative_accessibilityLabel(_ value: String) throws {
|
|
187
|
+
var value = value
|
|
188
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:775)
|
|
189
|
+
value = "\(value)"
|
|
190
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:780)
|
|
191
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityLabel").accessibilityLabel = value
|
|
192
|
+
}
|
|
193
|
+
#sourceLocation()
|
|
194
|
+
open func symbol_setNative_accessibilityHint(_ value: String) throws {
|
|
195
|
+
var value = value
|
|
196
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:785)
|
|
197
|
+
value = "\(value)"
|
|
198
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:786)
|
|
199
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityHint").accessibilityHint = value
|
|
200
|
+
}
|
|
201
|
+
#sourceLocation()
|
|
202
|
+
open func symbol_setNative_accessibilityIgnoresInvertColors(_ value: Bool) throws {
|
|
203
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:790)
|
|
204
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityIgnoresInvertColors")
|
|
205
|
+
.accessibilityIgnoresInvertColors = value
|
|
206
|
+
}
|
|
207
|
+
#sourceLocation()
|
|
208
|
+
open func symbol_setNative_accessibilityLanguage(_ value: String) throws {
|
|
209
|
+
var value = value
|
|
210
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:794)
|
|
211
|
+
value = "\(value)"
|
|
212
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:795)
|
|
213
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityLanguage").accessibilityLanguage =
|
|
214
|
+
value
|
|
215
|
+
}
|
|
216
|
+
#sourceLocation()
|
|
217
|
+
open func symbol_setNative_accessibilityHidden(_ value: Bool) throws {
|
|
218
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:799)
|
|
219
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "accessibilityElementsHidden")
|
|
220
|
+
.accessibilityElementsHidden = value
|
|
221
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:801)
|
|
222
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
223
|
+
}
|
|
224
|
+
#sourceLocation()
|
|
225
|
+
open func symbol_setNative_accessibilityLiveRegion() throws {
|
|
226
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:805)
|
|
227
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
228
|
+
}
|
|
229
|
+
#sourceLocation()
|
|
230
|
+
open func symbol_setNative_accessibilityState(_ value: String) throws {
|
|
231
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:809)
|
|
232
|
+
self.accessibilityState = value
|
|
233
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:810)
|
|
234
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
235
|
+
}
|
|
236
|
+
#sourceLocation()
|
|
237
|
+
open func symbol_setNative_accessibilityMediaSession() throws {
|
|
238
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:814)
|
|
239
|
+
try Core_application_helpers_common.updateA11yPropertiesCallback(self)
|
|
240
|
+
}
|
|
241
|
+
#sourceLocation()
|
|
242
|
+
open func symbol_getDefault_isUserInteractionEnabled() throws -> Bool {
|
|
243
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:818)
|
|
244
|
+
return try jsUnwrap(self.nativeViewProtected as? UIView, "userInteractionEnabled").isUserInteractionEnabled
|
|
245
|
+
}
|
|
246
|
+
#sourceLocation()
|
|
247
|
+
open func symbol_setNative_isUserInteractionEnabled(_ value: Bool) throws {
|
|
248
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:821)
|
|
249
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, setting: "userInteractionEnabled").isUserInteractionEnabled =
|
|
250
|
+
value
|
|
251
|
+
}
|
|
252
|
+
#sourceLocation()
|
|
253
|
+
open func symbol_getDefault_hidden() throws -> Bool {
|
|
254
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:825)
|
|
255
|
+
return try jsUnwrap(self.nativeViewProtected as? UIView, "hidden").isHidden
|
|
256
|
+
}
|
|
257
|
+
#sourceLocation()
|
|
258
|
+
open func symbol_setNative_hidden(_ value: Bool) throws {
|
|
259
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:828)
|
|
260
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
261
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:829)
|
|
262
|
+
try jsSet(nativeView, "hidden", value)
|
|
263
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:831)
|
|
264
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
265
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:832)
|
|
266
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "hidden", jsGet(nativeView, "hidden"))
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
#sourceLocation()
|
|
270
|
+
open func symbol_getDefault_visibility() throws -> String {
|
|
271
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:837)
|
|
272
|
+
return try
|
|
273
|
+
(jsUnwrap(self.nativeViewProtected as? UIView, "hidden").isHidden
|
|
274
|
+
? NativeScriptKit.CoreTypes.Visibility.collapse : NativeScriptKit.CoreTypes.Visibility.visible)
|
|
275
|
+
}
|
|
276
|
+
#sourceLocation()
|
|
277
|
+
open func symbol_setNative_visibility(_ value: String) throws {
|
|
278
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:840)
|
|
279
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
280
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:842)
|
|
281
|
+
let __switch1: String = value
|
|
282
|
+
switch __switch1 {
|
|
283
|
+
case _ where jsStringEquals(__switch1, NativeScriptKit.CoreTypes.Visibility.visible):
|
|
284
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:844)
|
|
285
|
+
try jsSet(nativeView, "hidden", false)
|
|
286
|
+
case _
|
|
287
|
+
where jsStringEquals(__switch1, NativeScriptKit.CoreTypes.Visibility.hidden)
|
|
288
|
+
|| jsStringEquals(__switch1, NativeScriptKit.CoreTypes.Visibility.collapse):
|
|
289
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:848)
|
|
290
|
+
try jsSet(nativeView, "hidden", true)
|
|
291
|
+
default:
|
|
292
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:851)
|
|
293
|
+
throw JSException(
|
|
294
|
+
value: JSError(
|
|
295
|
+
"Invalid visibility value: \(value). Valid values are: \"\(NativeScriptKit.CoreTypes.Visibility.visible)\", \"\(NativeScriptKit.CoreTypes.Visibility.hidden)\", \"\(NativeScriptKit.CoreTypes.Visibility.collapse)\"."
|
|
296
|
+
))
|
|
297
|
+
}
|
|
298
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:855)
|
|
299
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
300
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:856)
|
|
301
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "hidden", jsGet(nativeView, "hidden"))
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
#sourceLocation()
|
|
305
|
+
open func symbol_getDefault_opacity() throws -> Double {
|
|
306
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:861)
|
|
307
|
+
return try Double(jsUnwrap(self.nativeViewProtected as? UIView, "alpha").alpha)
|
|
308
|
+
}
|
|
309
|
+
#sourceLocation()
|
|
310
|
+
open func symbol_setNative_opacity(_ value: Double) throws {
|
|
311
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:864)
|
|
312
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
313
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:865)
|
|
314
|
+
let updateSuspended: Bool = self._isPresentationLayerUpdateSuspended()
|
|
315
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:866)
|
|
316
|
+
if !updateSuspended {
|
|
317
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:867)
|
|
318
|
+
CATransaction.begin()
|
|
319
|
+
}
|
|
320
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:870)
|
|
321
|
+
CATransaction.setDisableActions(true)
|
|
322
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:872)
|
|
323
|
+
try jsSet(nativeView, "alpha", value)
|
|
324
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:874)
|
|
325
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
326
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:875)
|
|
327
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "opacity", value)
|
|
328
|
+
}
|
|
329
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:878)
|
|
330
|
+
CATransaction.setDisableActions(false)
|
|
331
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:879)
|
|
332
|
+
if !updateSuspended {
|
|
333
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:880)
|
|
334
|
+
CATransaction.commit()
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
#sourceLocation()
|
|
338
|
+
open func symbol_getDefault_rotate() -> Double {
|
|
339
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:885)
|
|
340
|
+
return 0
|
|
341
|
+
}
|
|
342
|
+
#sourceLocation()
|
|
343
|
+
open func symbol_setNative_rotate(_ value: Double) throws {
|
|
344
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:888)
|
|
345
|
+
try self.updateNativeTransform()
|
|
346
|
+
}
|
|
347
|
+
#sourceLocation()
|
|
348
|
+
open func symbol_getDefault_rotateX() -> Double {
|
|
349
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:892)
|
|
350
|
+
return 0
|
|
351
|
+
}
|
|
352
|
+
#sourceLocation()
|
|
353
|
+
open func symbol_setNative_rotateX(_ value: Double) throws {
|
|
354
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:895)
|
|
355
|
+
try self.updateNativeTransform()
|
|
356
|
+
}
|
|
357
|
+
#sourceLocation()
|
|
358
|
+
open func symbol_getDefault_rotateY() -> Double {
|
|
359
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:899)
|
|
360
|
+
return 0
|
|
361
|
+
}
|
|
362
|
+
#sourceLocation()
|
|
363
|
+
open func symbol_setNative_rotateY(_ value: Double) throws {
|
|
364
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:902)
|
|
365
|
+
try self.updateNativeTransform()
|
|
366
|
+
}
|
|
367
|
+
#sourceLocation()
|
|
368
|
+
open func symbol_getDefault_perspective() -> Double {
|
|
369
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:906)
|
|
370
|
+
return 300
|
|
371
|
+
}
|
|
372
|
+
#sourceLocation()
|
|
373
|
+
open func symbol_setNative_perspective(_ value: Double) throws {
|
|
374
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:909)
|
|
375
|
+
try self.updateNativeTransform()
|
|
376
|
+
}
|
|
377
|
+
#sourceLocation()
|
|
378
|
+
open func symbol_getDefault_scaleX() -> Double {
|
|
379
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:913)
|
|
380
|
+
return 1
|
|
381
|
+
}
|
|
382
|
+
#sourceLocation()
|
|
383
|
+
open func symbol_setNative_scaleX(_ value: Double) throws {
|
|
384
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:916)
|
|
385
|
+
try self.updateNativeTransform()
|
|
386
|
+
}
|
|
387
|
+
#sourceLocation()
|
|
388
|
+
open func symbol_getDefault_scaleY() -> Double {
|
|
389
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:920)
|
|
390
|
+
return 1
|
|
391
|
+
}
|
|
392
|
+
#sourceLocation()
|
|
393
|
+
open func symbol_setNative_scaleY(_ value: Double) throws {
|
|
394
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:923)
|
|
395
|
+
try self.updateNativeTransform()
|
|
396
|
+
}
|
|
397
|
+
#sourceLocation()
|
|
398
|
+
open func symbol_getDefault_translateX() -> Double {
|
|
399
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:927)
|
|
400
|
+
return 0
|
|
401
|
+
}
|
|
402
|
+
#sourceLocation()
|
|
403
|
+
open func symbol_setNative_translateX(_ value: Double) throws {
|
|
404
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:930)
|
|
405
|
+
try self.updateNativeTransform()
|
|
406
|
+
}
|
|
407
|
+
#sourceLocation()
|
|
408
|
+
open func symbol_getDefault_translateY() -> Double {
|
|
409
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:934)
|
|
410
|
+
return 0
|
|
411
|
+
}
|
|
412
|
+
#sourceLocation()
|
|
413
|
+
open func symbol_setNative_translateY(_ value: Double) throws {
|
|
414
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:937)
|
|
415
|
+
try self.updateNativeTransform()
|
|
416
|
+
}
|
|
417
|
+
#sourceLocation()
|
|
418
|
+
open func symbol_getDefault_zIndex() -> Double {
|
|
419
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:941)
|
|
420
|
+
return 0
|
|
421
|
+
}
|
|
422
|
+
#sourceLocation()
|
|
423
|
+
open func symbol_setNative_zIndex(_ value: Double) throws {
|
|
424
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:944)
|
|
425
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
426
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:946)
|
|
427
|
+
try jsSet(jsGet(nativeView, "layer"), "zPosition", value)
|
|
428
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:948)
|
|
429
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
430
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:949)
|
|
431
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "zPosition", value)
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
#sourceLocation()
|
|
435
|
+
open func symbol_getDefault_backgroundInternal() throws -> UIColor? {
|
|
436
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:954)
|
|
437
|
+
return try jsImplicit(jsUnwrap(self.nativeViewProtected as? UIView, "backgroundColor").backgroundColor)
|
|
438
|
+
}
|
|
439
|
+
#sourceLocation()
|
|
440
|
+
open func symbol_setNative_backgroundInternal(_ value: Any?) throws {
|
|
441
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:957)
|
|
442
|
+
self._nativeBackgroundState = "invalid"
|
|
443
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:958)
|
|
444
|
+
if self.isLayoutValid {
|
|
445
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:959)
|
|
446
|
+
try self._redrawNativeBackground(value)
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
#sourceLocation()
|
|
450
|
+
open func symbol_getDefault_statusBarStyle() throws -> String {
|
|
451
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1018)
|
|
452
|
+
return try jsUnwrap(self.style, "statusBarStyle").statusBarStyle
|
|
453
|
+
}
|
|
454
|
+
#sourceLocation()
|
|
455
|
+
open func symbol_setNative_statusBarStyle(_ value: String) throws {
|
|
456
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1021)
|
|
457
|
+
try jsUnwrap(self.style, setting: "statusBarStyle").statusBarStyle = value
|
|
458
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1022)
|
|
459
|
+
try self.updateStatusBarStyle(value)
|
|
460
|
+
}
|
|
461
|
+
#sourceLocation()
|
|
462
|
+
open func symbol_setNative_iosGlassEffect(_ value: Any?) throws {
|
|
463
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1045)
|
|
464
|
+
if !jsTruthy((self.nativeViewProtected as? UIView)) || !Core_utils_constants.supportsGlass() {
|
|
465
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1046)
|
|
466
|
+
return
|
|
467
|
+
}
|
|
468
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1049)
|
|
469
|
+
if !jsTruthy(self._glassEffectView) {
|
|
470
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1051)
|
|
471
|
+
self._glassEffectView = try self._applyGlassEffect(
|
|
472
|
+
value,
|
|
473
|
+
JSObject([
|
|
474
|
+
("effectType", "glass"),
|
|
475
|
+
(
|
|
476
|
+
"onCreate",
|
|
477
|
+
FunctionCell_UIVisualEffectViewOpt_UIVisualEffectOpt_to_Void.scriptOrNil(
|
|
478
|
+
"", 2,
|
|
479
|
+
{ (effectView: UIVisualEffectView?, effect: UIVisualEffect?) throws -> Void in
|
|
480
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1055)
|
|
481
|
+
try jsUnwrap(effectView, setting: "userInteractionEnabled").isUserInteractionEnabled =
|
|
482
|
+
false
|
|
483
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1056)
|
|
484
|
+
try jsUnwrap(effectView, setting: "clipsToBounds").clipsToBounds = true
|
|
485
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1058)
|
|
486
|
+
if jsTruthy(self._glassEffectMeasure) {
|
|
487
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1059)
|
|
488
|
+
jsClearTimeout(try jsConvertedNumberOrNil(self._glassEffectMeasure))
|
|
489
|
+
}
|
|
490
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1061)
|
|
491
|
+
self._glassEffectMeasure = jsSetTimeout(
|
|
492
|
+
{
|
|
493
|
+
jsReport({ () throws -> Void in
|
|
494
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1062)
|
|
495
|
+
let size: CGSize = try jsUnwrap(
|
|
496
|
+
self.nativeViewProtected as? UIView, "bounds"
|
|
497
|
+
).bounds.size
|
|
498
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1063)
|
|
499
|
+
try jsUnwrap(effectView, setting: "frame").frame = CGRect(
|
|
500
|
+
x: 0, y: 0, width: size.width, height: size.height)
|
|
501
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1064)
|
|
502
|
+
try jsUnwrap(effectView, setting: "autoresizingMask").autoresizingMask =
|
|
503
|
+
UIView.AutoresizingMask(rawValue: jsNativeInteger(2, UInt.self))
|
|
504
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1065)
|
|
505
|
+
try jsUnwrap(self.nativeViewProtected as? UIView, "insertSubviewAtIndex")
|
|
506
|
+
.insertSubview(jsObjectRequired(effectView), at: 0)
|
|
507
|
+
})
|
|
508
|
+
}, 0)
|
|
509
|
+
})
|
|
510
|
+
),
|
|
511
|
+
]))!
|
|
512
|
+
} else {
|
|
513
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1071)
|
|
514
|
+
_ = try self._applyGlassEffect(
|
|
515
|
+
value, JSObject([("effectType", "glass"), ("targetView", self._glassEffectView)]))
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
#sourceLocation()
|
|
519
|
+
open func symbol_setNative_direction(_ value: String) throws {
|
|
520
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1079)
|
|
521
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
522
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1081)
|
|
523
|
+
let __switch2: String = value
|
|
524
|
+
switch __switch2 {
|
|
525
|
+
case _ where jsStringEquals(__switch2, NativeScriptKit.CoreTypes.LayoutDirection.ltr):
|
|
526
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1083)
|
|
527
|
+
try jsUnwrap(nativeView, setting: "semanticContentAttribute").semanticContentAttribute =
|
|
528
|
+
UISemanticContentAttribute.forceLeftToRight
|
|
529
|
+
case _ where jsStringEquals(__switch2, NativeScriptKit.CoreTypes.LayoutDirection.rtl):
|
|
530
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1086)
|
|
531
|
+
try jsUnwrap(nativeView, setting: "semanticContentAttribute").semanticContentAttribute =
|
|
532
|
+
UISemanticContentAttribute.forceRightToLeft
|
|
533
|
+
default:
|
|
534
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1089)
|
|
535
|
+
try jsUnwrap(nativeView, setting: "semanticContentAttribute").semanticContentAttribute =
|
|
536
|
+
UISemanticContentAttribute.unspecified
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
#sourceLocation()
|
|
540
|
+
open override func jsSymbolMethod(_ key: String) -> JSMethod? {
|
|
541
|
+
if key == ((Core_ui_core_view_view_common.isEnabledProperty?.getDefault)?.key ?? "undefined") {
|
|
542
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_isEnabled() }
|
|
543
|
+
}
|
|
544
|
+
if key == ((Core_ui_core_view_view_common.isEnabledProperty?.setNative)?.key ?? "undefined") {
|
|
545
|
+
return { __this, __a in
|
|
546
|
+
try (jsCastPresent(__this) as View).symbol_setNative_isEnabled((try jsConvertedBool(jsArg(__a, 0))))
|
|
547
|
+
return nil
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
if key == ((Core_ui_core_view_view_common.originXProperty?.getDefault)?.key ?? "undefined") {
|
|
551
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originX() }
|
|
552
|
+
}
|
|
553
|
+
if key == ((Core_ui_core_view_view_common.originXProperty?.setNative)?.key ?? "undefined") {
|
|
554
|
+
return { __this, __a in
|
|
555
|
+
try (jsCastPresent(__this) as View).symbol_setNative_originX((try jsConvertedNumber(jsArg(__a, 0))))
|
|
556
|
+
return nil
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
if key == ((Core_ui_core_view_view_common.originYProperty?.getDefault)?.key ?? "undefined") {
|
|
560
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_originY() }
|
|
561
|
+
}
|
|
562
|
+
if key == ((Core_ui_core_view_view_common.originYProperty?.setNative)?.key ?? "undefined") {
|
|
563
|
+
return { __this, __a in
|
|
564
|
+
try (jsCastPresent(__this) as View).symbol_setNative_originY((try jsConvertedNumber(jsArg(__a, 0))))
|
|
565
|
+
return nil
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
if key == ((Core_ui_core_view_view_common.testIDProperty?.setNative)?.key ?? "undefined") {
|
|
569
|
+
return { __this, __a in
|
|
570
|
+
try (jsCastPresent(__this) as View).symbol_setNative_testID((try jsConvertedString(jsArg(__a, 0))))
|
|
571
|
+
return nil
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
if key
|
|
575
|
+
== ((Core_accessibility_accessibility_properties.accessibilityEnabledProperty?.setNative)?.key
|
|
576
|
+
?? "undefined")
|
|
577
|
+
{
|
|
578
|
+
return { __this, __a in
|
|
579
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityEnabled(
|
|
580
|
+
(try jsConvertedBool(jsArg(__a, 0))))
|
|
581
|
+
return nil
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if key
|
|
585
|
+
== ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.getDefault)?.key
|
|
586
|
+
?? "undefined")
|
|
587
|
+
{
|
|
588
|
+
return { __this, __a in
|
|
589
|
+
return try (jsCastPresent(__this) as View).symbol_getDefault_accessibilityIdentifier()
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
if key
|
|
593
|
+
== ((Core_accessibility_accessibility_properties.accessibilityIdentifierProperty?.setNative)?.key
|
|
594
|
+
?? "undefined")
|
|
595
|
+
{
|
|
596
|
+
return { __this, __a in
|
|
597
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIdentifier(
|
|
598
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
599
|
+
return nil
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
if key
|
|
603
|
+
== ((Core_accessibility_accessibility_properties.accessibilityRoleProperty?.setNative)?.key ?? "undefined")
|
|
604
|
+
{
|
|
605
|
+
return { __this, __a in
|
|
606
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityRole(
|
|
607
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
608
|
+
return nil
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if key
|
|
612
|
+
== ((Core_accessibility_accessibility_properties.accessibilityValueProperty?.setNative)?.key ?? "undefined")
|
|
613
|
+
{
|
|
614
|
+
return { __this, __a in
|
|
615
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityValue(
|
|
616
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
617
|
+
return nil
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
if key
|
|
621
|
+
== ((Core_accessibility_accessibility_properties.accessibilityLabelProperty?.setNative)?.key ?? "undefined")
|
|
622
|
+
{
|
|
623
|
+
return { __this, __a in
|
|
624
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLabel(
|
|
625
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
626
|
+
return nil
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
if key
|
|
630
|
+
== ((Core_accessibility_accessibility_properties.accessibilityHintProperty?.setNative)?.key ?? "undefined")
|
|
631
|
+
{
|
|
632
|
+
return { __this, __a in
|
|
633
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHint(
|
|
634
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
635
|
+
return nil
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
if key
|
|
639
|
+
== ((Core_accessibility_accessibility_properties.accessibilityIgnoresInvertColorsProperty?.setNative)?.key
|
|
640
|
+
?? "undefined")
|
|
641
|
+
{
|
|
642
|
+
return { __this, __a in
|
|
643
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityIgnoresInvertColors(
|
|
644
|
+
(try jsConvertedBool(jsArg(__a, 0))))
|
|
645
|
+
return nil
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if key
|
|
649
|
+
== ((Core_accessibility_accessibility_properties.accessibilityLanguageProperty?.setNative)?.key
|
|
650
|
+
?? "undefined")
|
|
651
|
+
{
|
|
652
|
+
return { __this, __a in
|
|
653
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLanguage(
|
|
654
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
655
|
+
return nil
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
if key
|
|
659
|
+
== ((Core_accessibility_accessibility_properties.accessibilityHiddenProperty?.setNative)?.key ?? "undefined")
|
|
660
|
+
{
|
|
661
|
+
return { __this, __a in
|
|
662
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityHidden(
|
|
663
|
+
(try jsConvertedBool(jsArg(__a, 0))))
|
|
664
|
+
return nil
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if key
|
|
668
|
+
== ((Core_accessibility_accessibility_properties.accessibilityLiveRegionProperty?.setNative)?.key
|
|
669
|
+
?? "undefined")
|
|
670
|
+
{
|
|
671
|
+
return { __this, __a in
|
|
672
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityLiveRegion()
|
|
673
|
+
return nil
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
if key
|
|
677
|
+
== ((Core_accessibility_accessibility_properties.accessibilityStateProperty?.setNative)?.key ?? "undefined")
|
|
678
|
+
{
|
|
679
|
+
return { __this, __a in
|
|
680
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityState(
|
|
681
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
682
|
+
return nil
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
if key
|
|
686
|
+
== ((Core_accessibility_accessibility_properties.accessibilityMediaSessionProperty?.setNative)?.key
|
|
687
|
+
?? "undefined")
|
|
688
|
+
{
|
|
689
|
+
return { __this, __a in
|
|
690
|
+
try (jsCastPresent(__this) as View).symbol_setNative_accessibilityMediaSession()
|
|
691
|
+
return nil
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
if key == ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.getDefault)?.key ?? "undefined") {
|
|
695
|
+
return { __this, __a in
|
|
696
|
+
return try (jsCastPresent(__this) as View).symbol_getDefault_isUserInteractionEnabled()
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
if key == ((Core_ui_core_view_view_common.isUserInteractionEnabledProperty?.setNative)?.key ?? "undefined") {
|
|
700
|
+
return { __this, __a in
|
|
701
|
+
try (jsCastPresent(__this) as View).symbol_setNative_isUserInteractionEnabled(
|
|
702
|
+
(try jsConvertedBool(jsArg(__a, 0))))
|
|
703
|
+
return nil
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
if key == ((Core_ui_core_view_base_index.hiddenProperty?.getDefault)?.key ?? "undefined") {
|
|
707
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_hidden() }
|
|
708
|
+
}
|
|
709
|
+
if key == ((Core_ui_core_view_base_index.hiddenProperty?.setNative)?.key ?? "undefined") {
|
|
710
|
+
return { __this, __a in
|
|
711
|
+
try (jsCastPresent(__this) as View).symbol_setNative_hidden((try jsConvertedBool(jsArg(__a, 0))))
|
|
712
|
+
return nil
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if key == ((Core_ui_styling_style_properties.visibilityProperty?.getDefault)?.key ?? "undefined") {
|
|
716
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_visibility() }
|
|
717
|
+
}
|
|
718
|
+
if key == ((Core_ui_styling_style_properties.visibilityProperty?.setNative)?.key ?? "undefined") {
|
|
719
|
+
return { __this, __a in
|
|
720
|
+
try (jsCastPresent(__this) as View).symbol_setNative_visibility((try jsConvertedString(jsArg(__a, 0))))
|
|
721
|
+
return nil
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
if key == ((Core_ui_styling_style_properties.opacityProperty?.getDefault)?.key ?? "undefined") {
|
|
725
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_opacity() }
|
|
726
|
+
}
|
|
727
|
+
if key == ((Core_ui_styling_style_properties.opacityProperty?.setNative)?.key ?? "undefined") {
|
|
728
|
+
return { __this, __a in
|
|
729
|
+
try (jsCastPresent(__this) as View).symbol_setNative_opacity((try jsConvertedNumber(jsArg(__a, 0))))
|
|
730
|
+
return nil
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
if key == ((Core_ui_styling_style_properties.rotateProperty?.getDefault)?.key ?? "undefined") {
|
|
734
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotate() }
|
|
735
|
+
}
|
|
736
|
+
if key == ((Core_ui_styling_style_properties.rotateProperty?.setNative)?.key ?? "undefined") {
|
|
737
|
+
return { __this, __a in
|
|
738
|
+
try (jsCastPresent(__this) as View).symbol_setNative_rotate(0)
|
|
739
|
+
return nil
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
if key == ((Core_ui_styling_style_properties.rotateXProperty?.getDefault)?.key ?? "undefined") {
|
|
743
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateX() }
|
|
744
|
+
}
|
|
745
|
+
if key == ((Core_ui_styling_style_properties.rotateXProperty?.setNative)?.key ?? "undefined") {
|
|
746
|
+
return { __this, __a in
|
|
747
|
+
try (jsCastPresent(__this) as View).symbol_setNative_rotateX(0)
|
|
748
|
+
return nil
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
if key == ((Core_ui_styling_style_properties.rotateYProperty?.getDefault)?.key ?? "undefined") {
|
|
752
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_rotateY() }
|
|
753
|
+
}
|
|
754
|
+
if key == ((Core_ui_styling_style_properties.rotateYProperty?.setNative)?.key ?? "undefined") {
|
|
755
|
+
return { __this, __a in
|
|
756
|
+
try (jsCastPresent(__this) as View).symbol_setNative_rotateY(0)
|
|
757
|
+
return nil
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
if key == ((Core_ui_styling_style_properties.perspectiveProperty?.getDefault)?.key ?? "undefined") {
|
|
761
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_perspective() }
|
|
762
|
+
}
|
|
763
|
+
if key == ((Core_ui_styling_style_properties.perspectiveProperty?.setNative)?.key ?? "undefined") {
|
|
764
|
+
return { __this, __a in
|
|
765
|
+
try (jsCastPresent(__this) as View).symbol_setNative_perspective(0)
|
|
766
|
+
return nil
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
if key == ((Core_ui_styling_style_properties.scaleXProperty?.getDefault)?.key ?? "undefined") {
|
|
770
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleX() }
|
|
771
|
+
}
|
|
772
|
+
if key == ((Core_ui_styling_style_properties.scaleXProperty?.setNative)?.key ?? "undefined") {
|
|
773
|
+
return { __this, __a in
|
|
774
|
+
try (jsCastPresent(__this) as View).symbol_setNative_scaleX(0)
|
|
775
|
+
return nil
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if key == ((Core_ui_styling_style_properties.scaleYProperty?.getDefault)?.key ?? "undefined") {
|
|
779
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_scaleY() }
|
|
780
|
+
}
|
|
781
|
+
if key == ((Core_ui_styling_style_properties.scaleYProperty?.setNative)?.key ?? "undefined") {
|
|
782
|
+
return { __this, __a in
|
|
783
|
+
try (jsCastPresent(__this) as View).symbol_setNative_scaleY(0)
|
|
784
|
+
return nil
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
if key == ((Core_ui_styling_style_properties.translateXProperty?.getDefault)?.key ?? "undefined") {
|
|
788
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateX() }
|
|
789
|
+
}
|
|
790
|
+
if key == ((Core_ui_styling_style_properties.translateXProperty?.setNative)?.key ?? "undefined") {
|
|
791
|
+
return { __this, __a in
|
|
792
|
+
try (jsCastPresent(__this) as View).symbol_setNative_translateX(0)
|
|
793
|
+
return nil
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
if key == ((Core_ui_styling_style_properties.translateYProperty?.getDefault)?.key ?? "undefined") {
|
|
797
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_translateY() }
|
|
798
|
+
}
|
|
799
|
+
if key == ((Core_ui_styling_style_properties.translateYProperty?.setNative)?.key ?? "undefined") {
|
|
800
|
+
return { __this, __a in
|
|
801
|
+
try (jsCastPresent(__this) as View).symbol_setNative_translateY(0)
|
|
802
|
+
return nil
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if key == ((Core_ui_styling_style_properties.zIndexProperty?.getDefault)?.key ?? "undefined") {
|
|
806
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_zIndex() }
|
|
807
|
+
}
|
|
808
|
+
if key == ((Core_ui_styling_style_properties.zIndexProperty?.setNative)?.key ?? "undefined") {
|
|
809
|
+
return { __this, __a in
|
|
810
|
+
try (jsCastPresent(__this) as View).symbol_setNative_zIndex((try jsConvertedNumber(jsArg(__a, 0))))
|
|
811
|
+
return nil
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.getDefault)?.key ?? "undefined") {
|
|
815
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_backgroundInternal() }
|
|
816
|
+
}
|
|
817
|
+
if key == ((Core_ui_styling_style_properties.backgroundInternalProperty?.setNative)?.key ?? "undefined") {
|
|
818
|
+
return { __this, __a in
|
|
819
|
+
try (jsCastPresent(__this) as View).symbol_setNative_backgroundInternal(jsArg(__a, 0))
|
|
820
|
+
return nil
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.getDefault)?.key ?? "undefined") {
|
|
824
|
+
return { __this, __a in return try (jsCastPresent(__this) as View).symbol_getDefault_statusBarStyle() }
|
|
825
|
+
}
|
|
826
|
+
if key == ((Core_ui_core_view_view_common.statusBarStyleProperty?.setNative)?.key ?? "undefined") {
|
|
827
|
+
return { __this, __a in
|
|
828
|
+
try (jsCastPresent(__this) as View).symbol_setNative_statusBarStyle(
|
|
829
|
+
(try jsConvertedString(jsArg(__a, 0))))
|
|
830
|
+
return nil
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
if key == ((Core_ui_core_view_view_common.iosGlassEffectProperty?.setNative)?.key ?? "undefined") {
|
|
834
|
+
return { __this, __a in
|
|
835
|
+
try (jsCastPresent(__this) as View).symbol_setNative_iosGlassEffect(jsArg(__a, 0))
|
|
836
|
+
return nil
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if key == ((Core_ui_styling_style_properties.directionProperty?.setNative)?.key ?? "undefined") {
|
|
840
|
+
return { __this, __a in
|
|
841
|
+
try (jsCastPresent(__this) as View).symbol_setNative_direction((try jsConvertedString(jsArg(__a, 0))))
|
|
842
|
+
return nil
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
return super.jsSymbolMethod(key)
|
|
846
|
+
}
|
|
847
|
+
open override class var jsSymbolPlain: Bool { false }
|
|
848
|
+
open override func disposeNativeView() throws {
|
|
849
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:87)
|
|
850
|
+
try super.disposeNativeView()
|
|
851
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:89)
|
|
852
|
+
self._cachedFrame = CGRect()
|
|
853
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:90)
|
|
854
|
+
self._isLaidOut = false
|
|
855
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:91)
|
|
856
|
+
self._isTransformed = false
|
|
857
|
+
}
|
|
858
|
+
#sourceLocation()
|
|
859
|
+
public final func disposeNativeView__View() throws {
|
|
860
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:87)
|
|
861
|
+
try super.disposeNativeView()
|
|
862
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:89)
|
|
863
|
+
self._cachedFrame = CGRect()
|
|
864
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:90)
|
|
865
|
+
self._isLaidOut = false
|
|
866
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:91)
|
|
867
|
+
self._isTransformed = false
|
|
868
|
+
}
|
|
869
|
+
#sourceLocation()
|
|
870
|
+
open override func requestLayout() throws {
|
|
871
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:97)
|
|
872
|
+
if try
|
|
873
|
+
((((self as View?).map { (Core_ui_core_view_index.requestedThisTurn as JSSet<View>?)?.has($0) } ?? false))
|
|
874
|
+
?? false) && self.isLayoutRequested && Core_ui_core_view_index.isAncestorChainLayoutRequested(self)
|
|
875
|
+
{
|
|
876
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:98)
|
|
877
|
+
return
|
|
878
|
+
}
|
|
879
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:100)
|
|
880
|
+
self._privateFlags = jsBitOr(self._privateFlags, Core_ui_core_view_index.PFLAG_FORCE_LAYOUT)
|
|
881
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:101)
|
|
882
|
+
try super.requestLayout()
|
|
883
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:103)
|
|
884
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
885
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:104)
|
|
886
|
+
if try (jsTruthy(nativeView) && jsTruthy(jsUnwrap(nativeView, "setNeedsLayout").setNeedsLayout())) {
|
|
887
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:105)
|
|
888
|
+
try jsUnwrap(nativeView, "setNeedsLayout").setNeedsLayout()
|
|
889
|
+
}
|
|
890
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:109)
|
|
891
|
+
let controllerView: UIView? = ((self.viewController as? UIViewController) as UIViewController?)?.viewIfLoaded
|
|
892
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:110)
|
|
893
|
+
if jsTruthy(controllerView) && controllerView !== nativeView {
|
|
894
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:111)
|
|
895
|
+
try jsUnwrap(controllerView, "setNeedsLayout").setNeedsLayout()
|
|
896
|
+
}
|
|
897
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:114)
|
|
898
|
+
if !jsTruthy(Core_ui_core_view_index.requestedThisTurn) {
|
|
899
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:115)
|
|
900
|
+
Core_ui_core_view_index.requestedThisTurn = JSSet<View>()
|
|
901
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:116)
|
|
902
|
+
jsQueueMicrotask({ () -> Void in
|
|
903
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:116)
|
|
904
|
+
_ =
|
|
905
|
+
({ () -> JSSet<View>? in
|
|
906
|
+
Core_ui_core_view_index.requestedThisTurn = nil
|
|
907
|
+
return Core_ui_core_view_index.requestedThisTurn
|
|
908
|
+
}())
|
|
909
|
+
})
|
|
910
|
+
}
|
|
911
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:118)
|
|
912
|
+
_ = try jsUnwrap(Core_ui_core_view_index.requestedThisTurn, "add").add(self)
|
|
913
|
+
}
|
|
914
|
+
#sourceLocation()
|
|
915
|
+
public final func requestLayout__View() throws {
|
|
916
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:97)
|
|
917
|
+
if try
|
|
918
|
+
((((self as View?).map { (Core_ui_core_view_index.requestedThisTurn as JSSet<View>?)?.has($0) } ?? false))
|
|
919
|
+
?? false) && self.isLayoutRequested && Core_ui_core_view_index.isAncestorChainLayoutRequested(self)
|
|
920
|
+
{
|
|
921
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:98)
|
|
922
|
+
return
|
|
923
|
+
}
|
|
924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:100)
|
|
925
|
+
self._privateFlags = jsBitOr(self._privateFlags, Core_ui_core_view_index.PFLAG_FORCE_LAYOUT)
|
|
926
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:101)
|
|
927
|
+
try super.requestLayout()
|
|
928
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:103)
|
|
929
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
930
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:104)
|
|
931
|
+
if try (jsTruthy(nativeView) && jsTruthy(jsUnwrap(nativeView, "setNeedsLayout").setNeedsLayout())) {
|
|
932
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:105)
|
|
933
|
+
try jsUnwrap(nativeView, "setNeedsLayout").setNeedsLayout()
|
|
934
|
+
}
|
|
935
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:109)
|
|
936
|
+
let controllerView: UIView? = ((self.viewController as? UIViewController) as UIViewController?)?.viewIfLoaded
|
|
937
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:110)
|
|
938
|
+
if jsTruthy(controllerView) && controllerView !== nativeView {
|
|
939
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:111)
|
|
940
|
+
try jsUnwrap(controllerView, "setNeedsLayout").setNeedsLayout()
|
|
941
|
+
}
|
|
942
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:114)
|
|
943
|
+
if !jsTruthy(Core_ui_core_view_index.requestedThisTurn) {
|
|
944
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:115)
|
|
945
|
+
Core_ui_core_view_index.requestedThisTurn = JSSet<View>()
|
|
946
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:116)
|
|
947
|
+
jsQueueMicrotask({ () -> Void in
|
|
948
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:116)
|
|
949
|
+
_ =
|
|
950
|
+
({ () -> JSSet<View>? in
|
|
951
|
+
Core_ui_core_view_index.requestedThisTurn = nil
|
|
952
|
+
return Core_ui_core_view_index.requestedThisTurn
|
|
953
|
+
}())
|
|
954
|
+
})
|
|
955
|
+
}
|
|
956
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:118)
|
|
957
|
+
_ = try jsUnwrap(Core_ui_core_view_index.requestedThisTurn, "add").add(self)
|
|
958
|
+
}
|
|
959
|
+
#sourceLocation()
|
|
960
|
+
open override func measure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
961
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:122)
|
|
962
|
+
let measureSpecsChanged: Bool = self._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec)
|
|
963
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:123)
|
|
964
|
+
if jsTruthy((self.nativeViewProtected as? UIView)) && (self.isLayoutRequested || measureSpecsChanged) {
|
|
965
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:125)
|
|
966
|
+
self._privateFlags = jsBitAnd(
|
|
967
|
+
self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET))
|
|
968
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:128)
|
|
969
|
+
try self.onMeasure(widthMeasureSpec, heightMeasureSpec)
|
|
970
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:129)
|
|
971
|
+
self._privateFlags = jsBitOr(self._privateFlags, Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED)
|
|
972
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:133)
|
|
973
|
+
if jsBitAnd(self._privateFlags, Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET)
|
|
974
|
+
!= Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET
|
|
975
|
+
{
|
|
976
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:134)
|
|
977
|
+
if NativeScriptKit.Trace.isEnabled() {
|
|
978
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:135)
|
|
979
|
+
try NativeScriptKit.Trace.write(
|
|
980
|
+
"onMeasure() did not set the measured dimension by calling setMeasuredDimension() "
|
|
981
|
+
+ jsToStringDefaultThrowing(self), NativeScriptKit.Trace.categories.Layout,
|
|
982
|
+
NativeScriptKit.Trace.messageType.error)
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
#sourceLocation()
|
|
988
|
+
public final func measure__View(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
989
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:122)
|
|
990
|
+
let measureSpecsChanged: Bool = self._setCurrentMeasureSpecs(widthMeasureSpec, heightMeasureSpec)
|
|
991
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:123)
|
|
992
|
+
if jsTruthy((self.nativeViewProtected as? UIView)) && (self.isLayoutRequested || measureSpecsChanged) {
|
|
993
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:125)
|
|
994
|
+
self._privateFlags = jsBitAnd(
|
|
995
|
+
self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET))
|
|
996
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:128)
|
|
997
|
+
try self.onMeasure(widthMeasureSpec, heightMeasureSpec)
|
|
998
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:129)
|
|
999
|
+
self._privateFlags = jsBitOr(self._privateFlags, Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED)
|
|
1000
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:133)
|
|
1001
|
+
if jsBitAnd(self._privateFlags, Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET)
|
|
1002
|
+
!= Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET
|
|
1003
|
+
{
|
|
1004
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:134)
|
|
1005
|
+
if NativeScriptKit.Trace.isEnabled() {
|
|
1006
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:135)
|
|
1007
|
+
try NativeScriptKit.Trace.write(
|
|
1008
|
+
"onMeasure() did not set the measured dimension by calling setMeasuredDimension() "
|
|
1009
|
+
+ jsToStringDefaultThrowing(self), NativeScriptKit.Trace.categories.Layout,
|
|
1010
|
+
NativeScriptKit.Trace.messageType.error)
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
#sourceLocation()
|
|
1016
|
+
open override func layout(_ __b0: Double, _ __b1: Double, _ __b2: Double, _ __b3: Double, _ __b4: Bool? = nil)
|
|
1017
|
+
throws
|
|
1018
|
+
{
|
|
1019
|
+
let left: Double = __b0
|
|
1020
|
+
let top: Double = __b1
|
|
1021
|
+
let right: Double = __b2
|
|
1022
|
+
let bottom: Double = __b3
|
|
1023
|
+
let setFrame: Bool = __b4 ?? true
|
|
1024
|
+
_ = try { () throws -> Void in
|
|
1025
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:143)
|
|
1026
|
+
let __d_1: Any? = self._setCurrentLayoutBounds(left, top, right, bottom)
|
|
1027
|
+
let boundsChanged: Bool = (try jsConvertedBool((try jsGet(__d_1, "boundsChanged"))))
|
|
1028
|
+
let sizeChanged: Bool = (try jsConvertedBool((try jsGet(__d_1, "sizeChanged"))))
|
|
1029
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:145)
|
|
1030
|
+
if setFrame {
|
|
1031
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:146)
|
|
1032
|
+
try self.layoutNativeView(left, top, right, bottom)
|
|
1033
|
+
}
|
|
1034
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:149)
|
|
1035
|
+
let needsLayout: Bool = boundsChanged || self.isLayoutRequired
|
|
1036
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:150)
|
|
1037
|
+
if needsLayout {
|
|
1038
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:151)
|
|
1039
|
+
var position: Any? = nil
|
|
1040
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:153)
|
|
1041
|
+
if jsTruthy((self.nativeViewProtected as? UIView)) && Core_utils_constants.SDK_VERSION > 10 {
|
|
1042
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:156)
|
|
1043
|
+
position = try IOSHelper.getPositionFromFrame(
|
|
1044
|
+
jsUnwrap(self.nativeViewProtected as? UIView, "frame").frame)
|
|
1045
|
+
} else {
|
|
1046
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:158)
|
|
1047
|
+
position = JSObject([
|
|
1048
|
+
("left", left as Any?), ("top", top as Any?), ("right", right as Any?),
|
|
1049
|
+
("bottom", bottom as Any?),
|
|
1050
|
+
])
|
|
1051
|
+
}
|
|
1052
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:161)
|
|
1053
|
+
try self.onLayout(
|
|
1054
|
+
jsConvertedNumber(jsGet(position, "left")), jsConvertedNumber(jsGet(position, "top")),
|
|
1055
|
+
jsConvertedNumber(jsGet(position, "right")), jsConvertedNumber(jsGet(position, "bottom")))
|
|
1056
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:162)
|
|
1057
|
+
self._privateFlags = jsBitAnd(
|
|
1058
|
+
self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED))
|
|
1059
|
+
}
|
|
1060
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:165)
|
|
1061
|
+
try self.updateBackground(sizeChanged, needsLayout)
|
|
1062
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:166)
|
|
1063
|
+
self._privateFlags = jsBitAnd(self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_FORCE_LAYOUT))
|
|
1064
|
+
}()
|
|
1065
|
+
}
|
|
1066
|
+
#sourceLocation()
|
|
1067
|
+
open func updateBackground(_ sizeChanged: Bool, _ needsLayout: Bool) throws {
|
|
1068
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:170)
|
|
1069
|
+
if sizeChanged {
|
|
1070
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:171)
|
|
1071
|
+
try self._onSizeChanged()
|
|
1072
|
+
} else if jsStringEquals(self._nativeBackgroundState, "invalid") {
|
|
1073
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:173)
|
|
1074
|
+
let background: Background? = try jsUnwrap(self.style, "backgroundInternal").backgroundInternal
|
|
1075
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:174)
|
|
1076
|
+
try self._redrawNativeBackground(background)
|
|
1077
|
+
} else {
|
|
1078
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:177)
|
|
1079
|
+
if needsLayout {
|
|
1080
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:178)
|
|
1081
|
+
try self.layoutOuterShadows()
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
#sourceLocation()
|
|
1086
|
+
open func layoutOuterShadows() throws {
|
|
1087
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:184)
|
|
1088
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
1089
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:185)
|
|
1090
|
+
if try jsTruthy(jsGetIfPresent(nativeView, "outerShadowContainerLayer")) {
|
|
1091
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:186)
|
|
1092
|
+
CATransaction.setDisableActions(true)
|
|
1093
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:188)
|
|
1094
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "bounds", jsGet(nativeView, "bounds"))
|
|
1095
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:189)
|
|
1096
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "position", jsGet(nativeView, "center"))
|
|
1097
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:191)
|
|
1098
|
+
CATransaction.setDisableActions(false)
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
#sourceLocation()
|
|
1102
|
+
open override func setMeasuredDimension(_ measuredWidth: Double, _ measuredHeight: Double) throws {
|
|
1103
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:196)
|
|
1104
|
+
try super.setMeasuredDimension(measuredWidth, measuredHeight)
|
|
1105
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:197)
|
|
1106
|
+
self._privateFlags = jsBitOr(self._privateFlags, Core_ui_core_view_index.PFLAG_MEASURED_DIMENSION_SET)
|
|
1107
|
+
}
|
|
1108
|
+
#sourceLocation()
|
|
1109
|
+
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
1110
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:202)
|
|
1111
|
+
let view: UIView? = self.nativeViewProtected as? UIView
|
|
1112
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:203)
|
|
1113
|
+
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1114
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:204)
|
|
1115
|
+
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1116
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:206)
|
|
1117
|
+
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1118
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:207)
|
|
1119
|
+
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1120
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:209)
|
|
1121
|
+
var nativeWidth: Double = 0
|
|
1122
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:210)
|
|
1123
|
+
var nativeHeight: Double = 0
|
|
1124
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:211)
|
|
1125
|
+
if jsTruthy(view) {
|
|
1126
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:212)
|
|
1127
|
+
let nativeSize: Any? = try NativeScriptKit.layout.measureNativeView(
|
|
1128
|
+
view, width, widthMode, height, heightMode)
|
|
1129
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:213)
|
|
1130
|
+
nativeWidth = try jsConvertedNumber(jsGet(nativeSize, "width"))
|
|
1131
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:214)
|
|
1132
|
+
nativeHeight = try jsConvertedNumber(jsGet(nativeSize, "height"))
|
|
1133
|
+
}
|
|
1134
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:217)
|
|
1135
|
+
var measureWidth: Double = jsMathMax(nativeWidth, self.effectiveMinWidth)
|
|
1136
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:218)
|
|
1137
|
+
var measureHeight: Double = jsMathMax(nativeHeight, self.effectiveMinHeight)
|
|
1138
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:222)
|
|
1139
|
+
measureWidth = jsMathMin(measureWidth, self.effectiveMaxWidth)
|
|
1140
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:223)
|
|
1141
|
+
measureHeight = jsMathMin(measureHeight, self.effectiveMaxHeight)
|
|
1142
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:225)
|
|
1143
|
+
let widthAndState: Double = View.resolveSizeAndState(measureWidth, width, widthMode, 0)
|
|
1144
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:226)
|
|
1145
|
+
let heightAndState: Double = View.resolveSizeAndState(measureHeight, height, heightMode, 0)
|
|
1146
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:228)
|
|
1147
|
+
try self.setMeasuredDimension(widthAndState, heightAndState)
|
|
1148
|
+
}
|
|
1149
|
+
#sourceLocation()
|
|
1150
|
+
public final func onMeasure__View(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
1151
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:202)
|
|
1152
|
+
let view: UIView? = self.nativeViewProtected as? UIView
|
|
1153
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:203)
|
|
1154
|
+
let width: Double = NativeScriptKit.layout.getMeasureSpecSize(widthMeasureSpec)
|
|
1155
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:204)
|
|
1156
|
+
let widthMode: Double = NativeScriptKit.layout.getMeasureSpecMode(widthMeasureSpec)
|
|
1157
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:206)
|
|
1158
|
+
let height: Double = NativeScriptKit.layout.getMeasureSpecSize(heightMeasureSpec)
|
|
1159
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:207)
|
|
1160
|
+
let heightMode: Double = NativeScriptKit.layout.getMeasureSpecMode(heightMeasureSpec)
|
|
1161
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:209)
|
|
1162
|
+
var nativeWidth: Double = 0
|
|
1163
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:210)
|
|
1164
|
+
var nativeHeight: Double = 0
|
|
1165
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:211)
|
|
1166
|
+
if jsTruthy(view) {
|
|
1167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:212)
|
|
1168
|
+
let nativeSize: Any? = try NativeScriptKit.layout.measureNativeView(
|
|
1169
|
+
view, width, widthMode, height, heightMode)
|
|
1170
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:213)
|
|
1171
|
+
nativeWidth = try jsConvertedNumber(jsGet(nativeSize, "width"))
|
|
1172
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:214)
|
|
1173
|
+
nativeHeight = try jsConvertedNumber(jsGet(nativeSize, "height"))
|
|
1174
|
+
}
|
|
1175
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:217)
|
|
1176
|
+
var measureWidth: Double = jsMathMax(nativeWidth, self.effectiveMinWidth)
|
|
1177
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:218)
|
|
1178
|
+
var measureHeight: Double = jsMathMax(nativeHeight, self.effectiveMinHeight)
|
|
1179
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:222)
|
|
1180
|
+
measureWidth = jsMathMin(measureWidth, self.effectiveMaxWidth)
|
|
1181
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:223)
|
|
1182
|
+
measureHeight = jsMathMin(measureHeight, self.effectiveMaxHeight)
|
|
1183
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:225)
|
|
1184
|
+
let widthAndState: Double = View.resolveSizeAndState(measureWidth, width, widthMode, 0)
|
|
1185
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:226)
|
|
1186
|
+
let heightAndState: Double = View.resolveSizeAndState(measureHeight, height, heightMode, 0)
|
|
1187
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:228)
|
|
1188
|
+
try self.setMeasuredDimension(widthAndState, heightAndState)
|
|
1189
|
+
}
|
|
1190
|
+
#sourceLocation()
|
|
1191
|
+
open override func onLayout(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
|
|
1192
|
+
|
|
1193
|
+
}
|
|
1194
|
+
public final func onLayout__View(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
|
|
1195
|
+
|
|
1196
|
+
}
|
|
1197
|
+
open override func _modifyNativeViewFrame(_ __b0: Any?, _ __b1: Any?) throws {
|
|
1198
|
+
let nativeView: UIView? = (__b0 as? UIView)
|
|
1199
|
+
let frame: CGRect = jsNativeStructPresent(__b1, CGRect.self)
|
|
1200
|
+
_ = try { () throws -> Void in
|
|
1201
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:236)
|
|
1202
|
+
var transform: CATransform3D!
|
|
1203
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:238)
|
|
1204
|
+
if self._isTransformed {
|
|
1205
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:240)
|
|
1206
|
+
transform = try jsUnwrap(jsUnwrap(nativeView, "layer").layer, "transform").transform
|
|
1207
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:241)
|
|
1208
|
+
try jsUnwrap(jsUnwrap(nativeView, "layer").layer, setting: "transform").transform =
|
|
1209
|
+
CATransform3DIdentity
|
|
1210
|
+
} else {
|
|
1211
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:243)
|
|
1212
|
+
transform = nil
|
|
1213
|
+
}
|
|
1214
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:246)
|
|
1215
|
+
try jsUnwrap(nativeView, setting: "frame").frame = frame
|
|
1216
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:248)
|
|
1217
|
+
let adjustedFrame: CGRect? = try self.applySafeAreaInsets(frame)
|
|
1218
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:249)
|
|
1219
|
+
if jsTruthy(adjustedFrame as Any?) {
|
|
1220
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:250)
|
|
1221
|
+
try jsUnwrap(nativeView, setting: "frame").frame = jsObjectRequired(adjustedFrame)
|
|
1222
|
+
}
|
|
1223
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:253)
|
|
1224
|
+
if transform != nil {
|
|
1225
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:255)
|
|
1226
|
+
try jsUnwrap(jsUnwrap(nativeView, "layer").layer, setting: "transform").transform = transform
|
|
1227
|
+
}
|
|
1228
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:258)
|
|
1229
|
+
let boundsOrigin: CGPoint = try jsUnwrap(nativeView, "bounds").bounds.origin
|
|
1230
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:259)
|
|
1231
|
+
let boundsFrame: CGRect =
|
|
1232
|
+
({ () -> CGRect in
|
|
1233
|
+
let __v_1 = adjustedFrame
|
|
1234
|
+
return jsTruthy(__v_1) ? jsPresent(__v_1) : frame
|
|
1235
|
+
}())
|
|
1236
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:261)
|
|
1237
|
+
try jsUnwrap(nativeView, setting: "bounds").bounds = CGRect(
|
|
1238
|
+
x: boundsOrigin.x, y: boundsOrigin.y, width: boundsFrame.size.width, height: boundsFrame.size.height)
|
|
1239
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:262)
|
|
1240
|
+
try jsUnwrap(nativeView, "layoutIfNeeded").layoutIfNeeded()
|
|
1241
|
+
}()
|
|
1242
|
+
}
|
|
1243
|
+
#sourceLocation()
|
|
1244
|
+
public final func _modifyNativeViewFrame__View(_ nativeView: UIView?, _ frame: CGRect) throws {
|
|
1245
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:236)
|
|
1246
|
+
var transform: CATransform3D!
|
|
1247
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:238)
|
|
1248
|
+
if self._isTransformed {
|
|
1249
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:240)
|
|
1250
|
+
transform = try jsUnwrap(jsUnwrap(nativeView, "layer").layer, "transform").transform
|
|
1251
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:241)
|
|
1252
|
+
try jsUnwrap(jsUnwrap(nativeView, "layer").layer, setting: "transform").transform = CATransform3DIdentity
|
|
1253
|
+
} else {
|
|
1254
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:243)
|
|
1255
|
+
transform = nil
|
|
1256
|
+
}
|
|
1257
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:246)
|
|
1258
|
+
try jsUnwrap(nativeView, setting: "frame").frame = frame
|
|
1259
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:248)
|
|
1260
|
+
let adjustedFrame: CGRect? = try self.applySafeAreaInsets(frame)
|
|
1261
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:249)
|
|
1262
|
+
if jsTruthy(adjustedFrame as Any?) {
|
|
1263
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:250)
|
|
1264
|
+
try jsUnwrap(nativeView, setting: "frame").frame = jsObjectRequired(adjustedFrame)
|
|
1265
|
+
}
|
|
1266
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:253)
|
|
1267
|
+
if transform != nil {
|
|
1268
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:255)
|
|
1269
|
+
try jsUnwrap(jsUnwrap(nativeView, "layer").layer, setting: "transform").transform = transform
|
|
1270
|
+
}
|
|
1271
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:258)
|
|
1272
|
+
let boundsOrigin: CGPoint = try jsUnwrap(nativeView, "bounds").bounds.origin
|
|
1273
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:259)
|
|
1274
|
+
let boundsFrame: CGRect =
|
|
1275
|
+
({ () -> CGRect in
|
|
1276
|
+
let __v_2 = adjustedFrame
|
|
1277
|
+
return jsTruthy(__v_2) ? jsPresent(__v_2) : frame
|
|
1278
|
+
}())
|
|
1279
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:261)
|
|
1280
|
+
try jsUnwrap(nativeView, setting: "bounds").bounds = CGRect(
|
|
1281
|
+
x: boundsOrigin.x, y: boundsOrigin.y, width: boundsFrame.size.width, height: boundsFrame.size.height)
|
|
1282
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:262)
|
|
1283
|
+
try jsUnwrap(nativeView, "layoutIfNeeded").layoutIfNeeded()
|
|
1284
|
+
}
|
|
1285
|
+
#sourceLocation()
|
|
1286
|
+
open override func _setNativeViewFrame(_ __b0: Any?, _ __b1: Any?) throws {
|
|
1287
|
+
let nativeView: UIView? = (__b0 as? UIView)
|
|
1288
|
+
let frame: CGRect = jsNativeStructPresent(__b1, CGRect.self)
|
|
1289
|
+
_ = try { () throws -> Void in
|
|
1290
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:266)
|
|
1291
|
+
let oldFrame: CGRect = try
|
|
1292
|
+
({ () throws -> CGRect in
|
|
1293
|
+
let __v_3 = self._cachedFrame
|
|
1294
|
+
return jsTruthy(__v_3) ? jsPresent(__v_3) : try jsUnwrap(nativeView, "frame").frame
|
|
1295
|
+
}())
|
|
1296
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:268)
|
|
1297
|
+
if !oldFrame.equalTo(frame) {
|
|
1298
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:269)
|
|
1299
|
+
if NativeScriptKit.Trace.isEnabled() {
|
|
1300
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:270)
|
|
1301
|
+
try NativeScriptKit.Trace.write(
|
|
1302
|
+
jsToStringDefaultThrowing(self) + " :_setNativeViewFrame: "
|
|
1303
|
+
+ (jsJSONStringifyChecked(IOSHelper.getPositionFromFrame(frame)) ?? "undefined"),
|
|
1304
|
+
NativeScriptKit.Trace.categories.Layout)
|
|
1305
|
+
}
|
|
1306
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:273)
|
|
1307
|
+
self._cachedFrame = frame
|
|
1308
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:274)
|
|
1309
|
+
try self._modifyNativeViewFrame(nativeView, frame)
|
|
1310
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:276)
|
|
1311
|
+
try self._raiseLayoutChangedEvent()
|
|
1312
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:277)
|
|
1313
|
+
self._isLaidOut = true
|
|
1314
|
+
} else if !self._isLaidOut {
|
|
1315
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:279)
|
|
1316
|
+
self._cachedFrame = frame
|
|
1317
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:282)
|
|
1318
|
+
try self._raiseLayoutChangedEvent()
|
|
1319
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:285)
|
|
1320
|
+
self._isLaidOut = true
|
|
1321
|
+
}
|
|
1322
|
+
}()
|
|
1323
|
+
}
|
|
1324
|
+
#sourceLocation()
|
|
1325
|
+
public final func _setNativeViewFrame__View(_ nativeView: UIView?, _ frame: CGRect) throws {
|
|
1326
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:266)
|
|
1327
|
+
let oldFrame: CGRect = try
|
|
1328
|
+
({ () throws -> CGRect in
|
|
1329
|
+
let __v_4 = self._cachedFrame
|
|
1330
|
+
return jsTruthy(__v_4) ? jsPresent(__v_4) : try jsUnwrap(nativeView, "frame").frame
|
|
1331
|
+
}())
|
|
1332
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:268)
|
|
1333
|
+
if !oldFrame.equalTo(frame) {
|
|
1334
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:269)
|
|
1335
|
+
if NativeScriptKit.Trace.isEnabled() {
|
|
1336
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:270)
|
|
1337
|
+
try NativeScriptKit.Trace.write(
|
|
1338
|
+
jsToStringDefaultThrowing(self) + " :_setNativeViewFrame: "
|
|
1339
|
+
+ (jsJSONStringifyChecked(IOSHelper.getPositionFromFrame(frame)) ?? "undefined"),
|
|
1340
|
+
NativeScriptKit.Trace.categories.Layout)
|
|
1341
|
+
}
|
|
1342
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:273)
|
|
1343
|
+
self._cachedFrame = frame
|
|
1344
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:274)
|
|
1345
|
+
try self._modifyNativeViewFrame(nativeView, frame)
|
|
1346
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:276)
|
|
1347
|
+
try self._raiseLayoutChangedEvent()
|
|
1348
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:277)
|
|
1349
|
+
self._isLaidOut = true
|
|
1350
|
+
} else if !self._isLaidOut {
|
|
1351
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:279)
|
|
1352
|
+
self._cachedFrame = frame
|
|
1353
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:282)
|
|
1354
|
+
try self._raiseLayoutChangedEvent()
|
|
1355
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:285)
|
|
1356
|
+
self._isLaidOut = true
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
#sourceLocation()
|
|
1360
|
+
open override func layoutNativeView(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
|
|
1361
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:297)
|
|
1362
|
+
if !jsTruthy((self.nativeViewProtected as? UIView)) {
|
|
1363
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:298)
|
|
1364
|
+
return
|
|
1365
|
+
}
|
|
1366
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:301)
|
|
1367
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
1368
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:302)
|
|
1369
|
+
let frame: CGRect = try IOSHelper.getFrameFromPosition(
|
|
1370
|
+
JSObject([
|
|
1371
|
+
("left", left as Any?), ("top", top as Any?), ("right", right as Any?), ("bottom", bottom as Any?),
|
|
1372
|
+
]))
|
|
1373
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:308)
|
|
1374
|
+
try self._setNativeViewFrame(nativeView, frame)
|
|
1375
|
+
}
|
|
1376
|
+
#sourceLocation()
|
|
1377
|
+
public final func layoutNativeView__View(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
|
|
1378
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:297)
|
|
1379
|
+
if !jsTruthy((self.nativeViewProtected as? UIView)) {
|
|
1380
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:298)
|
|
1381
|
+
return
|
|
1382
|
+
}
|
|
1383
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:301)
|
|
1384
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
1385
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:302)
|
|
1386
|
+
let frame: CGRect = try IOSHelper.getFrameFromPosition(
|
|
1387
|
+
JSObject([
|
|
1388
|
+
("left", left as Any?), ("top", top as Any?), ("right", right as Any?), ("bottom", bottom as Any?),
|
|
1389
|
+
]))
|
|
1390
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:308)
|
|
1391
|
+
try self._setNativeViewFrame(nativeView, frame)
|
|
1392
|
+
}
|
|
1393
|
+
#sourceLocation()
|
|
1394
|
+
open override func _layoutParent() throws {
|
|
1395
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:312)
|
|
1396
|
+
if jsTruthy((self.nativeViewProtected as? UIView)) {
|
|
1397
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:313)
|
|
1398
|
+
let frame: CGRect = try jsUnwrap(self.nativeViewProtected as? UIView, "frame").frame
|
|
1399
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:314)
|
|
1400
|
+
let origin: CGPoint = frame.origin
|
|
1401
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:315)
|
|
1402
|
+
let size: CGSize = frame.size
|
|
1403
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:316)
|
|
1404
|
+
let left: Double = try NativeScriptKit.layout.toDevicePixels(Double(origin.x))
|
|
1405
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:317)
|
|
1406
|
+
let top: Double = try NativeScriptKit.layout.toDevicePixels(Double(origin.y))
|
|
1407
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:318)
|
|
1408
|
+
let width: Double = try NativeScriptKit.layout.toDevicePixels(Double(size.width))
|
|
1409
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:319)
|
|
1410
|
+
let height: Double = try NativeScriptKit.layout.toDevicePixels(Double(size.height))
|
|
1411
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:320)
|
|
1412
|
+
try self._setLayoutFlags(left, top, width + left, height + top)
|
|
1413
|
+
}
|
|
1414
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:323)
|
|
1415
|
+
try super._layoutParent()
|
|
1416
|
+
}
|
|
1417
|
+
#sourceLocation()
|
|
1418
|
+
open func _setLayoutFlags(_ left: Double, _ top: Double, _ right: Double, _ bottom: Double) throws {
|
|
1419
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:327)
|
|
1420
|
+
let width: Double = right - left
|
|
1421
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:328)
|
|
1422
|
+
let height: Double = bottom - top
|
|
1423
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:329)
|
|
1424
|
+
let widthSpec: Double = NativeScriptKit.layout.makeMeasureSpec(width, NativeScriptKit.layout.EXACTLY)
|
|
1425
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:330)
|
|
1426
|
+
let heightSpec: Double = NativeScriptKit.layout.makeMeasureSpec(height, NativeScriptKit.layout.EXACTLY)
|
|
1427
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:331)
|
|
1428
|
+
_ = self._setCurrentMeasureSpecs(widthSpec, heightSpec)
|
|
1429
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:332)
|
|
1430
|
+
self._privateFlags = jsBitAnd(self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_FORCE_LAYOUT))
|
|
1431
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:333)
|
|
1432
|
+
try self.setMeasuredDimension(width, height)
|
|
1433
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:335)
|
|
1434
|
+
let __d_2: Any? = self._setCurrentLayoutBounds(left, top, right, bottom)
|
|
1435
|
+
let boundsChanged: Bool = (try jsConvertedBool((try jsGet(__d_2, "boundsChanged"))))
|
|
1436
|
+
let sizeChanged: Bool = (try jsConvertedBool((try jsGet(__d_2, "sizeChanged"))))
|
|
1437
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:336)
|
|
1438
|
+
try self.updateBackground(sizeChanged, boundsChanged)
|
|
1439
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:337)
|
|
1440
|
+
self._privateFlags = jsBitAnd(self._privateFlags, jsBitNot(Core_ui_core_view_index.PFLAG_LAYOUT_REQUIRED))
|
|
1441
|
+
}
|
|
1442
|
+
#sourceLocation()
|
|
1443
|
+
open override func focus() throws -> Bool? {
|
|
1444
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:341)
|
|
1445
|
+
if try jsTruthy(self.ios) {
|
|
1446
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:342)
|
|
1447
|
+
return try jsConvertedBoolOrNil(jsCallMethod(self.ios, "becomeFirstResponder"))
|
|
1448
|
+
}
|
|
1449
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:345)
|
|
1450
|
+
return false
|
|
1451
|
+
}
|
|
1452
|
+
#sourceLocation()
|
|
1453
|
+
open func applySafeAreaInsets(_ frame: CGRect) throws -> CGRect? {
|
|
1454
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:349)
|
|
1455
|
+
if Core_utils_constants.SDK_VERSION <= 10 {
|
|
1456
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:350)
|
|
1457
|
+
return nil
|
|
1458
|
+
}
|
|
1459
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:352)
|
|
1460
|
+
if self.iosIgnoreSafeArea {
|
|
1461
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:353)
|
|
1462
|
+
return frame
|
|
1463
|
+
}
|
|
1464
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:355)
|
|
1465
|
+
if !self.iosOverflowSafeArea || !self.iosOverflowSafeAreaEnabled {
|
|
1466
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:356)
|
|
1467
|
+
return try IOSHelper.shrinkToSafeArea(self, frame)
|
|
1468
|
+
} else if try
|
|
1469
|
+
(jsTruthy((self.nativeViewProtected as? UIView))
|
|
1470
|
+
&& jsTruthy(jsImplicit(jsUnwrap(self.nativeViewProtected as? UIView, "window").window)))
|
|
1471
|
+
{
|
|
1472
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:358)
|
|
1473
|
+
return try IOSHelper.expandBeyondSafeArea(self, frame)
|
|
1474
|
+
}
|
|
1475
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:361)
|
|
1476
|
+
return nil
|
|
1477
|
+
}
|
|
1478
|
+
#sourceLocation()
|
|
1479
|
+
public final func applySafeAreaInsets__View(_ frame: CGRect) throws -> CGRect? {
|
|
1480
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:349)
|
|
1481
|
+
if Core_utils_constants.SDK_VERSION <= 10 {
|
|
1482
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:350)
|
|
1483
|
+
return nil
|
|
1484
|
+
}
|
|
1485
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:352)
|
|
1486
|
+
if self.iosIgnoreSafeArea {
|
|
1487
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:353)
|
|
1488
|
+
return frame
|
|
1489
|
+
}
|
|
1490
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:355)
|
|
1491
|
+
if !self.iosOverflowSafeArea || !self.iosOverflowSafeAreaEnabled {
|
|
1492
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:356)
|
|
1493
|
+
return try IOSHelper.shrinkToSafeArea(self, frame)
|
|
1494
|
+
} else if try
|
|
1495
|
+
(jsTruthy((self.nativeViewProtected as? UIView))
|
|
1496
|
+
&& jsTruthy(jsImplicit(jsUnwrap(self.nativeViewProtected as? UIView, "window").window)))
|
|
1497
|
+
{
|
|
1498
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:358)
|
|
1499
|
+
return try IOSHelper.expandBeyondSafeArea(self, frame)
|
|
1500
|
+
}
|
|
1501
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:361)
|
|
1502
|
+
return nil
|
|
1503
|
+
}
|
|
1504
|
+
#sourceLocation()
|
|
1505
|
+
open override func getSafeAreaInsets() throws -> Any? {
|
|
1506
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:365)
|
|
1507
|
+
let safeAreaInsets: UIEdgeInsets? = try
|
|
1508
|
+
({ () throws -> UIEdgeInsets? in
|
|
1509
|
+
let __v_5 = (self.nativeViewProtected as? UIView)
|
|
1510
|
+
return jsTruthy(__v_5)
|
|
1511
|
+
? try jsUnwrap(self.nativeViewProtected as? UIView, "safeAreaInsets").safeAreaInsets : nil
|
|
1512
|
+
}())
|
|
1513
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:366)
|
|
1514
|
+
let insets: Object_top_left_bottom_right = Object_top_left_bottom_right(
|
|
1515
|
+
top: 0, left: 0, bottom: 0, right: 0, jsOrder: ["left", "top", "right", "bottom"])
|
|
1516
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:367)
|
|
1517
|
+
if self.iosIgnoreSafeArea {
|
|
1518
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:368)
|
|
1519
|
+
return insets
|
|
1520
|
+
}
|
|
1521
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:372)
|
|
1522
|
+
if try IOSHelper.hasIOSManagedInsetAncestor(self) {
|
|
1523
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:373)
|
|
1524
|
+
return insets
|
|
1525
|
+
}
|
|
1526
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:375)
|
|
1527
|
+
if jsTruthy(safeAreaInsets as Any?) {
|
|
1528
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:376)
|
|
1529
|
+
insets.left = try NativeScriptKit.layout.round(
|
|
1530
|
+
NativeScriptKit.layout.toDevicePixels(Double(jsUnwrap(safeAreaInsets, "left").left)))
|
|
1531
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:377)
|
|
1532
|
+
insets.top = try NativeScriptKit.layout.round(
|
|
1533
|
+
NativeScriptKit.layout.toDevicePixels(Double(jsUnwrap(safeAreaInsets, "top").top)))
|
|
1534
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:378)
|
|
1535
|
+
insets.right = try NativeScriptKit.layout.round(
|
|
1536
|
+
NativeScriptKit.layout.toDevicePixels(Double(jsUnwrap(safeAreaInsets, "right").right)))
|
|
1537
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:379)
|
|
1538
|
+
insets.bottom = try NativeScriptKit.layout.round(
|
|
1539
|
+
NativeScriptKit.layout.toDevicePixels(Double(jsUnwrap(safeAreaInsets, "bottom").bottom)))
|
|
1540
|
+
}
|
|
1541
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:382)
|
|
1542
|
+
return insets
|
|
1543
|
+
}
|
|
1544
|
+
#sourceLocation()
|
|
1545
|
+
open override func _setDefaultPaddings(_ insets: Any?) throws {
|
|
1546
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:387)
|
|
1547
|
+
self._defaultPaddingTop = try NativeScriptKit.layout.toDevicePixels(
|
|
1548
|
+
Double(jsNativeStructPresent(insets, UIEdgeInsets.self).top))
|
|
1549
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:388)
|
|
1550
|
+
self._defaultPaddingRight = try NativeScriptKit.layout.toDevicePixels(
|
|
1551
|
+
Double(jsNativeStructPresent(insets, UIEdgeInsets.self).right))
|
|
1552
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:389)
|
|
1553
|
+
self._defaultPaddingBottom = try NativeScriptKit.layout.toDevicePixels(
|
|
1554
|
+
Double(jsNativeStructPresent(insets, UIEdgeInsets.self).bottom))
|
|
1555
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:390)
|
|
1556
|
+
self._defaultPaddingLeft = try NativeScriptKit.layout.toDevicePixels(
|
|
1557
|
+
Double(jsNativeStructPresent(insets, UIEdgeInsets.self).left))
|
|
1558
|
+
}
|
|
1559
|
+
#sourceLocation()
|
|
1560
|
+
open override func getLocationInWindow() throws -> Point? {
|
|
1561
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:400)
|
|
1562
|
+
if try !jsTruthy((self.nativeViewProtected as? UIView))
|
|
1563
|
+
|| !(jsTruthy(jsUnwrap(self.nativeViewProtected as? UIView, "window").window))
|
|
1564
|
+
{
|
|
1565
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:401)
|
|
1566
|
+
return nil
|
|
1567
|
+
}
|
|
1568
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:404)
|
|
1569
|
+
let pointInWindow: CGPoint = try jsUnwrap(self.nativeViewProtected as? UIView, "convertPointToView").convert(
|
|
1570
|
+
jsUnwrap(self.nativeViewProtected as? UIView, "bounds").bounds.origin, to: nil)
|
|
1571
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:406)
|
|
1572
|
+
return Point(x: Double(pointInWindow.x), y: Double(pointInWindow.y))
|
|
1573
|
+
}
|
|
1574
|
+
#sourceLocation()
|
|
1575
|
+
open override func getLocationOnScreen() throws -> Point? {
|
|
1576
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:413)
|
|
1577
|
+
if try !jsTruthy((self.nativeViewProtected as? UIView))
|
|
1578
|
+
|| !(jsTruthy(jsUnwrap(self.nativeViewProtected as? UIView, "window").window))
|
|
1579
|
+
{
|
|
1580
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:414)
|
|
1581
|
+
return nil
|
|
1582
|
+
}
|
|
1583
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:417)
|
|
1584
|
+
let pointInWindow: CGPoint = try jsUnwrap(self.nativeViewProtected as? UIView, "convertPointToView").convert(
|
|
1585
|
+
jsUnwrap(self.nativeViewProtected as? UIView, "bounds").bounds.origin, to: nil)
|
|
1586
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:418)
|
|
1587
|
+
let pointOnScreen: CGPoint = try jsUnwrap(
|
|
1588
|
+
jsUnwrap(self.nativeViewProtected as? UIView, "window").window, "convertPointToWindow"
|
|
1589
|
+
).convert(pointInWindow, to: nil)
|
|
1590
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:420)
|
|
1591
|
+
return Point(x: Double(pointOnScreen.x), y: Double(pointOnScreen.y))
|
|
1592
|
+
}
|
|
1593
|
+
#sourceLocation()
|
|
1594
|
+
open override func getLocationRelativeTo(_ __b0: ViewCommon?) throws -> Point? {
|
|
1595
|
+
let otherView: View? = __b0 as? View
|
|
1596
|
+
let __result: Point? = try { () throws -> Point? in
|
|
1597
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:427)
|
|
1598
|
+
if try !jsTruthy((self.nativeViewProtected as? UIView))
|
|
1599
|
+
|| !(jsTruthy(jsUnwrap(self.nativeViewProtected as? UIView, "window").window))
|
|
1600
|
+
|| !(jsTruthy((jsUnwrap(otherView, "nativeViewProtected").nativeViewProtected as? UIView)))
|
|
1601
|
+
|| !(jsTruthy(
|
|
1602
|
+
jsUnwrap(jsUnwrap(otherView, "nativeViewProtected").nativeViewProtected as? UIView, "window").window
|
|
1603
|
+
))
|
|
1604
|
+
|| jsImplicit(jsUnwrap(self.nativeViewProtected as? UIView, "window").window)
|
|
1605
|
+
!== jsImplicit(
|
|
1606
|
+
jsUnwrap(jsUnwrap(otherView, "nativeViewProtected").nativeViewProtected as? UIView, "window")
|
|
1607
|
+
.window)
|
|
1608
|
+
{
|
|
1609
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:428)
|
|
1610
|
+
return nil
|
|
1611
|
+
}
|
|
1612
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:431)
|
|
1613
|
+
let myPointInWindow: CGPoint = try jsUnwrap(self.nativeViewProtected as? UIView, "convertPointToView")
|
|
1614
|
+
.convert(jsUnwrap(self.nativeViewProtected as? UIView, "bounds").bounds.origin, to: nil)
|
|
1615
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:432)
|
|
1616
|
+
let otherPointInWindow: CGPoint = try jsUnwrap(
|
|
1617
|
+
jsUnwrap(otherView, "nativeViewProtected").nativeViewProtected as? UIView, "convertPointToView"
|
|
1618
|
+
).convert(
|
|
1619
|
+
jsUnwrap(jsUnwrap(otherView, "nativeViewProtected").nativeViewProtected as? UIView, "bounds").bounds
|
|
1620
|
+
.origin, to: nil)
|
|
1621
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:434)
|
|
1622
|
+
return Point(
|
|
1623
|
+
x: Double(myPointInWindow.x) - Double(otherPointInWindow.x),
|
|
1624
|
+
y: Double(myPointInWindow.y) - Double(otherPointInWindow.y))
|
|
1625
|
+
}()
|
|
1626
|
+
return __result
|
|
1627
|
+
}
|
|
1628
|
+
#sourceLocation()
|
|
1629
|
+
open func _onSizeChanged() throws {
|
|
1630
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:441)
|
|
1631
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
1632
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:442)
|
|
1633
|
+
if !jsTruthy(nativeView) {
|
|
1634
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:443)
|
|
1635
|
+
return
|
|
1636
|
+
}
|
|
1637
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:446)
|
|
1638
|
+
let background: Background? = try jsUnwrap(self.style, "backgroundInternal").backgroundInternal
|
|
1639
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:447)
|
|
1640
|
+
let backgroundDependsOnSize: Any? = try
|
|
1641
|
+
({ () throws -> Any? in
|
|
1642
|
+
let __v_6 = try
|
|
1643
|
+
({ () throws -> Any? in
|
|
1644
|
+
let __v_7 = try
|
|
1645
|
+
({ () throws -> Any? in
|
|
1646
|
+
let __v_8 = try
|
|
1647
|
+
({ () throws -> Any? in
|
|
1648
|
+
let __v_9 = try
|
|
1649
|
+
(({ () throws -> Bool in
|
|
1650
|
+
let __v_10 = try jsUnwrap(background, "image").image
|
|
1651
|
+
return jsTruthy(__v_10)
|
|
1652
|
+
? try !jsStrictEquals(jsUnwrap(background, "image").image, "none")
|
|
1653
|
+
: jsLenientBool(__v_10)
|
|
1654
|
+
}()))
|
|
1655
|
+
return jsTruthy(__v_9) ? __v_9 : try jsUnwrap(background, "clipPath").clipPath
|
|
1656
|
+
}())
|
|
1657
|
+
return jsTruthy(__v_8)
|
|
1658
|
+
? __v_8 : try !(jsUnwrap(background, "hasUniformBorder").hasUniformBorder())
|
|
1659
|
+
}())
|
|
1660
|
+
return jsTruthy(__v_7) ? __v_7 : try jsUnwrap(background, "hasBorderRadius").hasBorderRadius()
|
|
1661
|
+
}())
|
|
1662
|
+
return jsTruthy(__v_6) ? __v_6 : try jsUnwrap(background, "hasBoxShadows").hasBoxShadows()
|
|
1663
|
+
}())
|
|
1664
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:449)
|
|
1665
|
+
if jsStringEquals(self._nativeBackgroundState, "invalid")
|
|
1666
|
+
|| jsTruthy(
|
|
1667
|
+
(({ () -> Any? in
|
|
1668
|
+
let __v_11 = jsStringEquals(self._nativeBackgroundState, "drawn")
|
|
1669
|
+
return jsTruthy(__v_11) ? backgroundDependsOnSize : __v_11
|
|
1670
|
+
}())))
|
|
1671
|
+
{
|
|
1672
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:450)
|
|
1673
|
+
try self._redrawNativeBackground(background)
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
#sourceLocation()
|
|
1677
|
+
open func updateNativeTransform() throws {
|
|
1678
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:455)
|
|
1679
|
+
let scaleX: Double =
|
|
1680
|
+
({ () -> Double in
|
|
1681
|
+
let __v_12 = self.scaleX
|
|
1682
|
+
return jsTruthy(__v_12) ? jsPresent(__v_12) : 0.000001
|
|
1683
|
+
}())
|
|
1684
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:456)
|
|
1685
|
+
let scaleY: Double =
|
|
1686
|
+
({ () -> Double in
|
|
1687
|
+
let __v_13 = self.scaleY
|
|
1688
|
+
return jsTruthy(__v_13) ? jsPresent(__v_13) : 0.000001
|
|
1689
|
+
}())
|
|
1690
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:457)
|
|
1691
|
+
let perspective: Double =
|
|
1692
|
+
({ () -> Double in
|
|
1693
|
+
let __v_14 = self.perspective
|
|
1694
|
+
return jsTruthy(__v_14) ? jsPresent(__v_14) : 300
|
|
1695
|
+
}())
|
|
1696
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:458)
|
|
1697
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
1698
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:460)
|
|
1699
|
+
var transform: CATransform3D = CATransform3DIdentity
|
|
1700
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:463)
|
|
1701
|
+
if jsTruthy(self.rotateX) || jsTruthy(self.rotateY) {
|
|
1702
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:464)
|
|
1703
|
+
transform.m34 = CGFloat(jsNativeNumber(-1 / perspective))
|
|
1704
|
+
}
|
|
1705
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:467)
|
|
1706
|
+
transform = CATransform3DTranslate(
|
|
1707
|
+
transform, CGFloat(jsNativeNumber(self.translateX)), CGFloat(jsNativeNumber(self.translateY)), 0)
|
|
1708
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:468)
|
|
1709
|
+
transform = try jsCallable(
|
|
1710
|
+
jsUnwrap(Core_utils_native_helper.ios, "applyRotateTransform").applyRotateTransform,
|
|
1711
|
+
"iosUtils.applyRotateTransform")(transform, self.rotateX, self.rotateY, self.rotate)
|
|
1712
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:469)
|
|
1713
|
+
transform = CATransform3DScale(transform, CGFloat(jsNativeNumber(scaleX)), CGFloat(jsNativeNumber(scaleY)), 1)
|
|
1714
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:471)
|
|
1715
|
+
if try
|
|
1716
|
+
!(CATransform3DEqualToTransform(
|
|
1717
|
+
jsUnwrap(jsUnwrap(self.nativeViewProtected as? UIView, "layer").layer, "transform").transform, transform
|
|
1718
|
+
))
|
|
1719
|
+
{
|
|
1720
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:472)
|
|
1721
|
+
let updateSuspended: Bool = self._isPresentationLayerUpdateSuspended()
|
|
1722
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:473)
|
|
1723
|
+
if !updateSuspended {
|
|
1724
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:474)
|
|
1725
|
+
CATransaction.begin()
|
|
1726
|
+
}
|
|
1727
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:477)
|
|
1728
|
+
CATransaction.setDisableActions(true)
|
|
1729
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:479)
|
|
1730
|
+
try jsUnwrap(jsUnwrap(self.nativeViewProtected as? UIView, "layer").layer, setting: "transform").transform =
|
|
1731
|
+
transform
|
|
1732
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:480)
|
|
1733
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
1734
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:481)
|
|
1735
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "transform", transform)
|
|
1736
|
+
}
|
|
1737
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:483)
|
|
1738
|
+
self._isTransformed = try
|
|
1739
|
+
({ () throws -> Bool in
|
|
1740
|
+
let __v_15 = (self.nativeViewProtected as? UIView)
|
|
1741
|
+
return jsTruthy(__v_15)
|
|
1742
|
+
? try
|
|
1743
|
+
!(CATransform3DEqualToTransform(
|
|
1744
|
+
jsUnwrap(self.nativeViewProtected as? UIView, "transform3D").transform3D,
|
|
1745
|
+
CATransform3DIdentity)) : jsTruthy(__v_15)
|
|
1746
|
+
}())
|
|
1747
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:485)
|
|
1748
|
+
CATransaction.setDisableActions(false)
|
|
1749
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:486)
|
|
1750
|
+
if !updateSuspended {
|
|
1751
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:487)
|
|
1752
|
+
CATransaction.commit()
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
#sourceLocation()
|
|
1757
|
+
open func updateOriginPoint(_ originX: Double, _ originY: Double) throws {
|
|
1758
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:493)
|
|
1759
|
+
let nativeView: Any? = self.nativeViewProtected as? UIView
|
|
1760
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:494)
|
|
1761
|
+
let newPoint: CGPoint = CGPoint(x: CGFloat(jsNativeNumber(originX)), y: CGFloat(jsNativeNumber(originY)))
|
|
1762
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:497)
|
|
1763
|
+
CATransaction.setDisableActions(true)
|
|
1764
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:499)
|
|
1765
|
+
try jsSet(jsGet(nativeView, "layer"), "anchorPoint", newPoint)
|
|
1766
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:502)
|
|
1767
|
+
if jsTruthy(self._cachedFrame) {
|
|
1768
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:503)
|
|
1769
|
+
let frame: CGRect = self._cachedFrame
|
|
1770
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:505)
|
|
1771
|
+
self._cachedFrame = CGRect()
|
|
1772
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:506)
|
|
1773
|
+
try self._setNativeViewFrame(nativeView, frame)
|
|
1774
|
+
}
|
|
1775
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:510)
|
|
1776
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
1777
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:512)
|
|
1778
|
+
let frame: Any? = try jsGet(nativeView, "frame")
|
|
1779
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:514)
|
|
1780
|
+
try jsSet(jsGet(nativeView, "outerShadowContainerLayer"), "anchorPoint", newPoint)
|
|
1781
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:515)
|
|
1782
|
+
try jsSet(
|
|
1783
|
+
jsGet(nativeView, "outerShadowContainerLayer"), "position",
|
|
1784
|
+
CGPoint(
|
|
1785
|
+
x: CGFloat(
|
|
1786
|
+
jsNativeNumber(
|
|
1787
|
+
jsToNumber(
|
|
1788
|
+
jsAddThrowing(
|
|
1789
|
+
jsGet(jsGet(frame, "origin"), "x"),
|
|
1790
|
+
jsMultiplyThrowing(jsGet(jsGet(frame, "size"), "width"), originX))))),
|
|
1791
|
+
y: CGFloat(
|
|
1792
|
+
jsNativeNumber(
|
|
1793
|
+
jsToNumber(
|
|
1794
|
+
jsAddThrowing(
|
|
1795
|
+
jsGet(jsGet(frame, "origin"), "y"),
|
|
1796
|
+
jsMultiplyThrowing(jsGet(jsGet(frame, "size"), "height"), originY)))))))
|
|
1797
|
+
}
|
|
1798
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:518)
|
|
1799
|
+
CATransaction.setDisableActions(false)
|
|
1800
|
+
}
|
|
1801
|
+
#sourceLocation()
|
|
1802
|
+
open func _suspendPresentationLayerUpdates() {
|
|
1803
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:525)
|
|
1804
|
+
self._suspendCATransaction = true
|
|
1805
|
+
}
|
|
1806
|
+
#sourceLocation()
|
|
1807
|
+
open func _resumePresentationLayerUpdates() {
|
|
1808
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:529)
|
|
1809
|
+
self._suspendCATransaction = false
|
|
1810
|
+
}
|
|
1811
|
+
#sourceLocation()
|
|
1812
|
+
open func _isPresentationLayerUpdateSuspended() -> Bool {
|
|
1813
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:533)
|
|
1814
|
+
return self._suspendCATransaction || self._suspendNativeUpdatesCount > 0
|
|
1815
|
+
}
|
|
1816
|
+
#sourceLocation()
|
|
1817
|
+
open override func _showNativeModalView(_ __b0: ViewCommon?, _ __b1: Any?) throws {
|
|
1818
|
+
let parent: View? = __b0 as? View
|
|
1819
|
+
let options: Any? = __b1
|
|
1820
|
+
_ = try { () throws -> Void in
|
|
1821
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:537)
|
|
1822
|
+
let parentWithController: View? = try IOSHelper.getParentWithViewController(parent)
|
|
1823
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:538)
|
|
1824
|
+
if !jsTruthy(parentWithController) {
|
|
1825
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:539)
|
|
1826
|
+
try NativeScriptKit.Trace.write(
|
|
1827
|
+
"Could not find parent with viewController for \(jsToStringThrowing(parent)) while showing modal view.",
|
|
1828
|
+
NativeScriptKit.Trace.categories.ViewHierarchy, NativeScriptKit.Trace.messageType.error)
|
|
1829
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:541)
|
|
1830
|
+
return
|
|
1831
|
+
}
|
|
1832
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:544)
|
|
1833
|
+
let parentController: UIViewController? =
|
|
1834
|
+
try jsUnwrap(parentWithController, "viewController").viewController as? UIViewController
|
|
1835
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:545)
|
|
1836
|
+
if try jsTruthy(jsUnwrap(parentController, "presentedViewController").presentedViewController) {
|
|
1837
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:546)
|
|
1838
|
+
try NativeScriptKit.Trace.write(
|
|
1839
|
+
"Parent is already presenting view controller. Close the current modal page before showing another one!",
|
|
1840
|
+
NativeScriptKit.Trace.categories.ViewHierarchy, NativeScriptKit.Trace.messageType.error)
|
|
1841
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:548)
|
|
1842
|
+
return
|
|
1843
|
+
}
|
|
1844
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:551)
|
|
1845
|
+
if try !(jsTruthy(jsUnwrap(parentController, "view").view))
|
|
1846
|
+
|| !(jsTruthy(jsUnwrap(jsUnwrap(parentController, "view").view, "window").window))
|
|
1847
|
+
{
|
|
1848
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:552)
|
|
1849
|
+
try NativeScriptKit.Trace.write(
|
|
1850
|
+
"Parent page is not part of the window hierarchy.", NativeScriptKit.Trace.categories.ViewHierarchy,
|
|
1851
|
+
NativeScriptKit.Trace.messageType.error)
|
|
1852
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:554)
|
|
1853
|
+
return
|
|
1854
|
+
}
|
|
1855
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:557)
|
|
1856
|
+
try self._setupAsRootView(JSObject([]))
|
|
1857
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:559)
|
|
1858
|
+
try super._showNativeModalView(jsImplicit(parentWithController as ViewCommon?), options)
|
|
1859
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:560)
|
|
1860
|
+
var controller: UIViewController? = self.viewController as? UIViewController
|
|
1861
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:561)
|
|
1862
|
+
if !jsTruthy(controller) {
|
|
1863
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:562)
|
|
1864
|
+
let nativeView: Any? = try
|
|
1865
|
+
({ () throws -> Any? in
|
|
1866
|
+
let __v_16 = try self.ios
|
|
1867
|
+
return jsTruthy(__v_16) ? __v_16 : (self.nativeViewProtected as? UIView)
|
|
1868
|
+
}())
|
|
1869
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:563)
|
|
1870
|
+
controller = try jsImplicit(
|
|
1871
|
+
jsUnwrap(IOSHelper.UILayoutViewController, "initWithOwner").initWithOwner(JSWeakRef<View>(self))
|
|
1872
|
+
as UIViewController?)
|
|
1873
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:565)
|
|
1874
|
+
if nativeView is UIView {
|
|
1875
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:566)
|
|
1876
|
+
try jsUnwrap(jsUnwrap(controller, "view").view, "addSubview").addSubview(
|
|
1877
|
+
(jsCastPresent(nativeView) as UIView))
|
|
1878
|
+
}
|
|
1879
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:569)
|
|
1880
|
+
self.viewController = controller
|
|
1881
|
+
}
|
|
1882
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:572)
|
|
1883
|
+
if try jsTruthy(jsGet(options, "transition")) {
|
|
1884
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:573)
|
|
1885
|
+
try jsUnwrap(controller, setting: "modalPresentationStyle").modalPresentationStyle =
|
|
1886
|
+
UIModalPresentationStyle.custom
|
|
1887
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:574)
|
|
1888
|
+
if try jsTruthy(jsGet(jsGet(options, "transition"), "instance")) {
|
|
1889
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:575)
|
|
1890
|
+
self._transitioningDelegate = try UIViewControllerTransitioningDelegateImpl.initWithOwner(
|
|
1891
|
+
JSWeakRef<ModalTransition>(
|
|
1892
|
+
(jsCastPresent(jsGet(jsGet(options, "transition"), "instance")) as ModalTransition)))
|
|
1893
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:576)
|
|
1894
|
+
try jsUnwrap(controller, setting: "transitioningDelegate").transitioningDelegate = jsObjectRequired(
|
|
1895
|
+
self._transitioningDelegate)
|
|
1896
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:577)
|
|
1897
|
+
self.transitionId = try jsUnwrap(
|
|
1898
|
+
jsCast(jsGet(jsGet(options, "transition"), "instance"), ModalTransition.self), "id"
|
|
1899
|
+
).id
|
|
1900
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:578)
|
|
1901
|
+
let transitionState: Any? = try SharedTransition.getState(
|
|
1902
|
+
jsUnwrap(jsCast(jsGet(jsGet(options, "transition"), "instance"), ModalTransition.self), "id").id
|
|
1903
|
+
)
|
|
1904
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:579)
|
|
1905
|
+
if try jsTruthy(jsGetIfPresent(jsGetIfPresent(transitionState, "interactive"), "dismiss")) {
|
|
1906
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:583)
|
|
1907
|
+
try jsUnwrap(
|
|
1908
|
+
jsCast(jsGet(jsGet(options, "transition"), "instance"), ModalTransition.self),
|
|
1909
|
+
"setupInteractiveGesture"
|
|
1910
|
+
).setupInteractiveGesture(
|
|
1911
|
+
FunctionCell_none_to_Void.present(
|
|
1912
|
+
FunctionCell_none_to_Void.fromScriptOrNil(
|
|
1913
|
+
jsCallMethod(self._closeModalCallback, "bind", self))), self)
|
|
1914
|
+
}
|
|
1915
|
+
}
|
|
1916
|
+
} else if try jsConvertedBool(jsGet(options, "fullscreen")) {
|
|
1917
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:587)
|
|
1918
|
+
try jsUnwrap(controller, setting: "modalPresentationStyle").modalPresentationStyle =
|
|
1919
|
+
UIModalPresentationStyle.fullScreen
|
|
1920
|
+
} else {
|
|
1921
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:589)
|
|
1922
|
+
try jsUnwrap(controller, setting: "modalPresentationStyle").modalPresentationStyle =
|
|
1923
|
+
UIModalPresentationStyle.formSheet
|
|
1924
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:592)
|
|
1925
|
+
if try
|
|
1926
|
+
({ () throws -> Bool in
|
|
1927
|
+
let __v_17 = try jsGet(options, "ios")
|
|
1928
|
+
return jsTruthy(__v_17)
|
|
1929
|
+
? try jsConvertedNumber(jsGet(jsGet(options, "ios"), "width")) > 0 : jsLenientBool(__v_17)
|
|
1930
|
+
}()) && jsConvertedNumber(jsGet(jsGet(options, "ios"), "height")) > 0
|
|
1931
|
+
{
|
|
1932
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:593)
|
|
1933
|
+
try jsUnwrap(controller, setting: "preferredContentSize").preferredContentSize = CGSize(
|
|
1934
|
+
width: CGFloat(jsNativeNumber(jsConvertedNumber(jsGet(jsGet(options, "ios"), "width")))),
|
|
1935
|
+
height: CGFloat(jsNativeNumber(jsConvertedNumber(jsGet(jsGet(options, "ios"), "height")))))
|
|
1936
|
+
} else {
|
|
1937
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:596)
|
|
1938
|
+
var handler: (() throws -> Void)?
|
|
1939
|
+
handler = { () throws -> Void in
|
|
1940
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:597)
|
|
1941
|
+
if jsTruthy((self.viewController as? UIViewController)) {
|
|
1942
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:598)
|
|
1943
|
+
let w: Double = try jsConvertedNumber(
|
|
1944
|
+
(({ () throws -> Any? in
|
|
1945
|
+
let __v_18 = self.width
|
|
1946
|
+
return jsTruthy(__v_18) ? __v_18 : try jsUnwrap(self.style, "width").width
|
|
1947
|
+
}())))
|
|
1948
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:599)
|
|
1949
|
+
let h: Double = try jsConvertedNumber(
|
|
1950
|
+
(({ () throws -> Any? in
|
|
1951
|
+
let __v_19 = self.height
|
|
1952
|
+
return jsTruthy(__v_19) ? __v_19 : try jsUnwrap(self.style, "height").height
|
|
1953
|
+
}())))
|
|
1954
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:602)
|
|
1955
|
+
if w > 0 && h > 0 {
|
|
1956
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:603)
|
|
1957
|
+
try jsUnwrap(self.viewController as? UIViewController, setting: "preferredContentSize")
|
|
1958
|
+
.preferredContentSize = CGSize(
|
|
1959
|
+
width: CGFloat(jsNativeNumber(w)), height: CGFloat(jsNativeNumber(h)))
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:607)
|
|
1963
|
+
try self.off(View.loadedEvent, FunctionCell_EventDataOpt_to_Void.adaptingOrNil(handler))
|
|
1964
|
+
}
|
|
1965
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:610)
|
|
1966
|
+
try self.on(
|
|
1967
|
+
View.loadedEvent,
|
|
1968
|
+
FunctionCell_EventDataOpt_to_Void.adapting(FunctionCell_none_to_Void.present(handler)))
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:614)
|
|
1972
|
+
if try jsTruthy(jsGet(options, "ios")) {
|
|
1973
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:615)
|
|
1974
|
+
if try jsTruthy(jsGet(jsGet(options, "ios"), "presentationStyle")) {
|
|
1975
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:616)
|
|
1976
|
+
let presentationStyle: Any? = try jsGet(jsGet(options, "ios"), "presentationStyle")
|
|
1977
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:617)
|
|
1978
|
+
try jsUnwrap(controller, setting: "modalPresentationStyle").modalPresentationStyle = jsNativeEnum(
|
|
1979
|
+
UIModalPresentationStyle.self, jsNativeInteger(jsToNumber(presentationStyle), Int.self))
|
|
1980
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:619)
|
|
1981
|
+
if jsStrictEquals(presentationStyle, Double(UIModalPresentationStyle.popover.rawValue)) {
|
|
1982
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:620)
|
|
1983
|
+
try self._setupPopoverControllerDelegate(controller, parent)
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:623)
|
|
1987
|
+
if try jsTruthy(jsGet(jsGet(options, "ios"), "statusBarStyle")) {
|
|
1988
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:627)
|
|
1989
|
+
try jsUnwrap(controller, setting: "modalPresentationCapturesStatusBarAppearance")
|
|
1990
|
+
.modalPresentationCapturesStatusBarAppearance = true
|
|
1991
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:628)
|
|
1992
|
+
self.statusBarStyle = try jsConvertedString(jsGet(jsGet(options, "ios"), "statusBarStyle"))
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:632)
|
|
1996
|
+
let cancelable: Bool =
|
|
1997
|
+
try
|
|
1998
|
+
(!jsStrictEquals(jsGet(options, "cancelable"), nil)
|
|
1999
|
+
? !(!(jsConvertedBool(jsGet(options, "cancelable")))) : true)
|
|
2000
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:634)
|
|
2001
|
+
if Core_utils_constants.SDK_VERSION >= 13 {
|
|
2002
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:635)
|
|
2003
|
+
if cancelable {
|
|
2004
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:637)
|
|
2005
|
+
try self._setupAdaptiveControllerDelegate(controller)
|
|
2006
|
+
} else {
|
|
2007
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:640)
|
|
2008
|
+
try jsUnwrap(controller, setting: "modalInPresentation").isModalInPresentation = true
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:644)
|
|
2012
|
+
self.horizontalAlignment = "stretch"
|
|
2013
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:645)
|
|
2014
|
+
self.verticalAlignment = "stretch"
|
|
2015
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:647)
|
|
2016
|
+
try self._raiseShowingModallyEvent()
|
|
2017
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:648)
|
|
2018
|
+
let animated: Bool =
|
|
2019
|
+
try
|
|
2020
|
+
(jsStrictEquals(jsGet(options, "animated"), nil)
|
|
2021
|
+
? true : !(!(jsConvertedBool(jsGet(options, "animated")))))
|
|
2022
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:649)
|
|
2023
|
+
if !jsTruthy(self._modalAnimatedOptions) {
|
|
2024
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:651)
|
|
2025
|
+
self._modalAnimatedOptions = JSArray<Bool>()
|
|
2026
|
+
}
|
|
2027
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:653)
|
|
2028
|
+
_ = try jsUnwrap(self._modalAnimatedOptions, "push").push(animated)
|
|
2029
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:662)
|
|
2030
|
+
try jsUnwrap(parentController, "presentViewControllerAnimatedCompletion").present(
|
|
2031
|
+
jsObjectRequired(controller), animated: animated, completion: nil)
|
|
2032
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:663)
|
|
2033
|
+
let transitionCoordinator: (any UIViewControllerTransitionCoordinator)? = try jsUnwrap(
|
|
2034
|
+
parentController, "transitionCoordinator"
|
|
2035
|
+
).transitionCoordinator
|
|
2036
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:664)
|
|
2037
|
+
if jsTruthy(transitionCoordinator) {
|
|
2038
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:665)
|
|
2039
|
+
_ = try jsUnwrap(transitionCoordinator, "animateAlongsideTransitionCompletion").animate(
|
|
2040
|
+
alongsideTransition: nil,
|
|
2041
|
+
completion: jsEnter { (__b0: any UIViewControllerTransitionCoordinatorContext) -> Void in
|
|
2042
|
+
({ () -> Void in
|
|
2043
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:666)
|
|
2044
|
+
_ = jsSetTimeout(
|
|
2045
|
+
{
|
|
2046
|
+
jsReport({ () throws -> Void in
|
|
2047
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:668)
|
|
2048
|
+
try self._raiseShownModallyEvent()
|
|
2049
|
+
})
|
|
2050
|
+
}, 0)
|
|
2051
|
+
})()
|
|
2052
|
+
})
|
|
2053
|
+
} else {
|
|
2054
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:675)
|
|
2055
|
+
try self._raiseShownModallyEvent()
|
|
2056
|
+
}
|
|
2057
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:677)
|
|
2058
|
+
controller = nil
|
|
2059
|
+
}()
|
|
2060
|
+
}
|
|
2061
|
+
#sourceLocation()
|
|
2062
|
+
open override func _hideNativeModalView(_ __b0: ViewCommon?, _ __b1: @escaping () throws -> Void) throws {
|
|
2063
|
+
let parent: View? = __b0 as? View
|
|
2064
|
+
let whenClosedCallback: () throws -> Void = __b1
|
|
2065
|
+
_ = try { () throws -> Void in
|
|
2066
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:681)
|
|
2067
|
+
if try !jsTruthy(parent)
|
|
2068
|
+
|| !(jsTruthy((jsUnwrap(parent, "viewController").viewController as? UIViewController)))
|
|
2069
|
+
{
|
|
2070
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:682)
|
|
2071
|
+
try NativeScriptKit.Trace.error(
|
|
2072
|
+
"Trying to hide modal view but no parent with viewController specified.")
|
|
2073
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:684)
|
|
2074
|
+
return
|
|
2075
|
+
}
|
|
2076
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:688)
|
|
2077
|
+
if try
|
|
2078
|
+
!(jsTruthy(
|
|
2079
|
+
jsUnwrap(
|
|
2080
|
+
jsUnwrap(parent, "viewController").viewController as? UIViewController,
|
|
2081
|
+
"presentedViewController"
|
|
2082
|
+
).presentedViewController))
|
|
2083
|
+
{
|
|
2084
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:689)
|
|
2085
|
+
try jsCallable(whenClosedCallback, "whenClosedCallback")()
|
|
2086
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:691)
|
|
2087
|
+
return
|
|
2088
|
+
}
|
|
2089
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:694)
|
|
2090
|
+
let parentController: UIViewController? =
|
|
2091
|
+
try jsUnwrap(parent, "viewController").viewController as? UIViewController
|
|
2092
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:695)
|
|
2093
|
+
var animated: Bool = true
|
|
2094
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:696)
|
|
2095
|
+
if jsTruthy((((self._modalAnimatedOptions as JSArray<Bool>?)?.length) ?? .nan)) {
|
|
2096
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:697)
|
|
2097
|
+
animated =
|
|
2098
|
+
try (jsUnwrap(jsUnwrap(self._modalAnimatedOptions, "slice").slice(-1), "0").element(0) ?? false)
|
|
2099
|
+
}
|
|
2100
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:700)
|
|
2101
|
+
try jsUnwrap(parentController, "dismissViewControllerAnimatedCompletion").dismiss(
|
|
2102
|
+
animated: animated,
|
|
2103
|
+
completion: jsEnter { () -> Void in
|
|
2104
|
+
jsReport {
|
|
2105
|
+
try
|
|
2106
|
+
({ () throws -> Void in
|
|
2107
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:701)
|
|
2108
|
+
let transitionState: Any? = try SharedTransition.getState(self.transitionId)
|
|
2109
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:702)
|
|
2110
|
+
if try !(jsConvertedBool(jsGetIfPresent(transitionState, "interactiveCancelled"))) {
|
|
2111
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:703)
|
|
2112
|
+
self._transitioningDelegate = nil
|
|
2113
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:705)
|
|
2114
|
+
if jsTruthy(self._modalAnimatedOptions) {
|
|
2115
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:706)
|
|
2116
|
+
_ = try jsUnwrap(self._modalAnimatedOptions, "pop").pop()
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:709)
|
|
2120
|
+
try jsCallable(whenClosedCallback, "whenClosedCallback")()
|
|
2121
|
+
})()
|
|
2122
|
+
}
|
|
2123
|
+
})
|
|
2124
|
+
}()
|
|
2125
|
+
}
|
|
2126
|
+
#sourceLocation()
|
|
2127
|
+
open override func setAccessibilityIdentifier(_ view: Any?, _ value: String) throws {
|
|
2128
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:744)
|
|
2129
|
+
try jsSet(view, "accessibilityIdentifier", value)
|
|
2130
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:746)
|
|
2131
|
+
if jsTruthy(self.testID) && !jsStringEquals(self.testID, value) {
|
|
2132
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:746)
|
|
2133
|
+
self.testID = value
|
|
2134
|
+
}
|
|
2135
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:747)
|
|
2136
|
+
if !jsStringEquals(self.accessibilityIdentifier, value) {
|
|
2137
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:747)
|
|
2138
|
+
self.accessibilityIdentifier = value
|
|
2139
|
+
}
|
|
2140
|
+
}
|
|
2141
|
+
#sourceLocation()
|
|
2142
|
+
open override func _applyGlassEffect(_ value: Any?, _ options: Any?) throws -> UIVisualEffectView? {
|
|
2143
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:973)
|
|
2144
|
+
let config: Any? = (!jsStringEquals(jsTypeof(value), "string") ? value : jsNull)
|
|
2145
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:974)
|
|
2146
|
+
let variant: String =
|
|
2147
|
+
try (jsTruthy(config) ? jsConvertedString(jsGet(config, "variant")) : ((try jsConvertedString(value))))
|
|
2148
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:975)
|
|
2149
|
+
let defaultDuration: Double = 0.3
|
|
2150
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:976)
|
|
2151
|
+
let duration: Double =
|
|
2152
|
+
try
|
|
2153
|
+
(jsTruthy(config)
|
|
2154
|
+
? ((jsLenientNumberOrNil(jsGet(config, "animateChangeDuration")) ?? defaultDuration)) : defaultDuration)
|
|
2155
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:977)
|
|
2156
|
+
let glassSupported: Bool = Core_utils_constants.supportsGlass()
|
|
2157
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:978)
|
|
2158
|
+
var effect: UIVisualEffect? = UIVisualEffect()
|
|
2159
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:981)
|
|
2160
|
+
if ({ () -> Bool in
|
|
2161
|
+
let __v_20 = value
|
|
2162
|
+
return jsTruthy(__v_20)
|
|
2163
|
+
? !(JSArray<String>(["identity", "none"]).includes(variant)) : jsLenientBool(__v_20)
|
|
2164
|
+
}()) && glassSupported {
|
|
2165
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:982)
|
|
2166
|
+
if try jsStrictEquals(jsGet(options, "effectType"), "glass") {
|
|
2167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:983)
|
|
2168
|
+
let styleFn: Any? = try
|
|
2169
|
+
({ () throws -> Any? in
|
|
2170
|
+
let __v_21 = try FunctionCell_StringOpt_to_Double.fromScriptOrNil(
|
|
2171
|
+
jsGet(options, "toGlassStyleFn"))
|
|
2172
|
+
return jsTruthy(__v_21)
|
|
2173
|
+
? FunctionCell_StringOpt_to_Double.scriptOrNil("", 1, __v_21)
|
|
2174
|
+
: FunctionCell_StringOpt_to_AnyOpt.scriptOrNil("", 1, self.toUIGlassStyle)
|
|
2175
|
+
}())
|
|
2176
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:984)
|
|
2177
|
+
if #available(iOS 26, *) {
|
|
2178
|
+
effect = try UIGlassEffect(
|
|
2179
|
+
style: jsNativeEnum(
|
|
2180
|
+
UIGlassEffect.Style.self, jsNativeInteger(jsToNumber(jsCall(styleFn, variant)), Int.self)))
|
|
2181
|
+
} else {
|
|
2182
|
+
throw JSException(jsUnavailable(26))
|
|
2183
|
+
}
|
|
2184
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:985)
|
|
2185
|
+
if jsTruthy(config) {
|
|
2186
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:986)
|
|
2187
|
+
if #available(iOS 26, *) {
|
|
2188
|
+
try jsUnwrap(effect as? UIGlassEffect, setting: "interactive").isInteractive =
|
|
2189
|
+
!(!(jsConvertedBool(jsGet(config, "interactive"))))
|
|
2190
|
+
} else {
|
|
2191
|
+
throw JSException(jsUnavailable(26))
|
|
2192
|
+
}
|
|
2193
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:987)
|
|
2194
|
+
if try jsTruthy(jsGet(config, "tint")) {
|
|
2195
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:988)
|
|
2196
|
+
if #available(iOS 26, *) {
|
|
2197
|
+
try jsUnwrap(effect as? UIGlassEffect, setting: "tintColor").tintColor =
|
|
2198
|
+
(jsFlat(
|
|
2199
|
+
(jsStringEquals(jsTypeof(jsGet(config, "tint")), "string")
|
|
2200
|
+
? ((Color(JSArray<Any?>([jsGet(config, "tint")])).ios as? UIColor) as Any?)
|
|
2201
|
+
: (jsGet(config, "tint") as Any?))) as? UIColor)
|
|
2202
|
+
} else {
|
|
2203
|
+
throw JSException(jsUnavailable(26))
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
} else if try jsStrictEquals(jsGet(options, "effectType"), "container") {
|
|
2208
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:992)
|
|
2209
|
+
if #available(iOS 26, *) {
|
|
2210
|
+
effect = UIGlassContainerEffect()
|
|
2211
|
+
} else {
|
|
2212
|
+
throw JSException(jsUnavailable(26))
|
|
2213
|
+
}
|
|
2214
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:993)
|
|
2215
|
+
if #available(iOS 26, *) {
|
|
2216
|
+
try jsUnwrap(effect as? UIGlassContainerEffect, setting: "spacing").spacing = CGFloat(
|
|
2217
|
+
jsNativeNumber((jsLenientNumberOrNil(jsGetIfPresent(config, "spacing")) ?? 8)))
|
|
2218
|
+
} else {
|
|
2219
|
+
throw JSException(jsUnavailable(26))
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:998)
|
|
2224
|
+
if try jsTruthy(jsGet(options, "targetView")) {
|
|
2225
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1000)
|
|
2226
|
+
if try jsTruthy(jsGet(options, "onUpdate")) {
|
|
2227
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1001)
|
|
2228
|
+
try jsCallMethod(options, "onUpdate", jsGet(options, "targetView"), effect, duration)
|
|
2229
|
+
} else {
|
|
2230
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1004)
|
|
2231
|
+
UIView.animate(
|
|
2232
|
+
withDuration: jsNativeNumber(duration),
|
|
2233
|
+
animations: jsEnter { () -> Void in
|
|
2234
|
+
jsReport {
|
|
2235
|
+
try
|
|
2236
|
+
({ () throws -> Void in
|
|
2237
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1005)
|
|
2238
|
+
try jsUnwrap(jsGet(options, "targetView") as? UIVisualEffectView, setting: "effect")
|
|
2239
|
+
.effect = effect
|
|
2240
|
+
})()
|
|
2241
|
+
}
|
|
2242
|
+
})
|
|
2243
|
+
}
|
|
2244
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1008)
|
|
2245
|
+
return nil
|
|
2246
|
+
} else if try jsTruthy(jsGet(options, "onCreate")) {
|
|
2247
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1011)
|
|
2248
|
+
let effectView: UIVisualEffectView? = UIVisualEffectView(effect: effect)
|
|
2249
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1012)
|
|
2250
|
+
try jsCallMethod(options, "onCreate", effectView, effect)
|
|
2251
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1013)
|
|
2252
|
+
return effectView
|
|
2253
|
+
}
|
|
2254
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1015)
|
|
2255
|
+
return nil
|
|
2256
|
+
}
|
|
2257
|
+
#sourceLocation()
|
|
2258
|
+
open override func updateStatusBarStyle(_ value: String) throws {
|
|
2259
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1027)
|
|
2260
|
+
let ownerController: UIViewController? = try { () throws -> UIViewController? in
|
|
2261
|
+
let __v_22 = (self.viewController as? UIViewController)
|
|
2262
|
+
return jsTruthy(__v_22)
|
|
2263
|
+
? jsPresent(__v_22)
|
|
2264
|
+
: try
|
|
2265
|
+
((IOSHelper.getParentWithViewController((try jsCast(self, View.self))) as View?)?.viewController
|
|
2266
|
+
as? UIViewController)
|
|
2267
|
+
}()
|
|
2268
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1028)
|
|
2269
|
+
try IOSHelper.invalidateStatusBarAppearance(ownerController, "View.updateStatusBarStyle:\(value)")
|
|
2270
|
+
}
|
|
2271
|
+
#sourceLocation()
|
|
2272
|
+
open override func _childIndexToNativeChildIndex(_ index: Double? = nil) throws -> Double? {
|
|
2273
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1032)
|
|
2274
|
+
if !jsStringEquals((((index).map { $0.isNaN } ?? true) ? "undefined" : "number"), "number") {
|
|
2275
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1033)
|
|
2276
|
+
return index
|
|
2277
|
+
}
|
|
2278
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1037)
|
|
2279
|
+
let effectView: UIVisualEffectView? = self._glassEffectView
|
|
2280
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1038)
|
|
2281
|
+
if try
|
|
2282
|
+
(jsTruthy(effectView)
|
|
2283
|
+
&& jsImplicit(jsUnwrap(effectView, "superview").superview) === (self.nativeViewProtected as? UIView))
|
|
2284
|
+
{
|
|
2285
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1039)
|
|
2286
|
+
return (index ?? .nan) + 1
|
|
2287
|
+
}
|
|
2288
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1041)
|
|
2289
|
+
return index
|
|
2290
|
+
}
|
|
2291
|
+
#sourceLocation()
|
|
2292
|
+
public final func _childIndexToNativeChildIndex__View(_ index: Double? = nil) throws -> Double? {
|
|
2293
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1032)
|
|
2294
|
+
if !jsStringEquals((((index).map { $0.isNaN } ?? true) ? "undefined" : "number"), "number") {
|
|
2295
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1033)
|
|
2296
|
+
return index
|
|
2297
|
+
}
|
|
2298
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1037)
|
|
2299
|
+
let effectView: UIVisualEffectView? = self._glassEffectView
|
|
2300
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1038)
|
|
2301
|
+
if try
|
|
2302
|
+
(jsTruthy(effectView)
|
|
2303
|
+
&& jsImplicit(jsUnwrap(effectView, "superview").superview) === (self.nativeViewProtected as? UIView))
|
|
2304
|
+
{
|
|
2305
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1039)
|
|
2306
|
+
return (index ?? .nan) + 1
|
|
2307
|
+
}
|
|
2308
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1041)
|
|
2309
|
+
return index
|
|
2310
|
+
}
|
|
2311
|
+
#sourceLocation()
|
|
2312
|
+
open override func sendAccessibilityEvent(_ options: Any?) throws {
|
|
2313
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1095)
|
|
2314
|
+
if try !Core_application_application.isAccessibilityServiceEnabled() {
|
|
2315
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1096)
|
|
2316
|
+
return
|
|
2317
|
+
}
|
|
2318
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1099)
|
|
2319
|
+
if try !(jsTruthy(jsGet(options, "iosNotificationType"))) {
|
|
2320
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1100)
|
|
2321
|
+
return
|
|
2322
|
+
}
|
|
2323
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1103)
|
|
2324
|
+
var notification: Double? = nil
|
|
2325
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1104)
|
|
2326
|
+
var args: Any? = self.nativeViewProtected as? UIView
|
|
2327
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1105)
|
|
2328
|
+
if try jsTruthy(jsConvertedString(jsGetIfPresent(options, "message"))) {
|
|
2329
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1106)
|
|
2330
|
+
args = try jsGet(options, "message")
|
|
2331
|
+
}
|
|
2332
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1109)
|
|
2333
|
+
let __switch3: String = try jsConvertedString(jsGet(options, "iosNotificationType"))
|
|
2334
|
+
switch __switch3 {
|
|
2335
|
+
case _ where jsStringEquals(__switch3, IOSPostAccessibilityNotificationType.Announcement):
|
|
2336
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1111)
|
|
2337
|
+
notification = Double(UIAccessibility.Notification.announcement.rawValue)
|
|
2338
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1112)
|
|
2339
|
+
break
|
|
2340
|
+
case _ where jsStringEquals(__switch3, IOSPostAccessibilityNotificationType.Layout):
|
|
2341
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1115)
|
|
2342
|
+
notification = Double(UIAccessibility.Notification.layoutChanged.rawValue)
|
|
2343
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1116)
|
|
2344
|
+
break
|
|
2345
|
+
case _ where jsStringEquals(__switch3, IOSPostAccessibilityNotificationType.Screen):
|
|
2346
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1119)
|
|
2347
|
+
notification = Double(UIAccessibility.Notification.screenChanged.rawValue)
|
|
2348
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1120)
|
|
2349
|
+
break
|
|
2350
|
+
default:
|
|
2351
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1123)
|
|
2352
|
+
return
|
|
2353
|
+
}
|
|
2354
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1127)
|
|
2355
|
+
UIAccessibility.post(
|
|
2356
|
+
notification: UIAccessibility.Notification(rawValue: jsNativeInteger((notification ?? .nan), UInt32.self)),
|
|
2357
|
+
argument: jsFlat(jsNullishCoalesce(args, jsNull)))
|
|
2358
|
+
}
|
|
2359
|
+
#sourceLocation()
|
|
2360
|
+
open override func accessibilityAnnouncement(_ msg: String? = nil) throws {
|
|
2361
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1130)
|
|
2362
|
+
let msg: String = msg ?? self.accessibilityLabel
|
|
2363
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1131)
|
|
2364
|
+
try self.sendAccessibilityEvent(
|
|
2365
|
+
JSObject([("iosNotificationType", IOSPostAccessibilityNotificationType.Announcement), ("message", msg)]))
|
|
2366
|
+
}
|
|
2367
|
+
#sourceLocation()
|
|
2368
|
+
open override func accessibilityScreenChanged(_ __b0: Bool? = nil) throws {
|
|
2369
|
+
_ = try { () throws -> Void in
|
|
2370
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1138)
|
|
2371
|
+
try self.sendAccessibilityEvent(
|
|
2372
|
+
JSObject([("iosNotificationType", IOSPostAccessibilityNotificationType.Screen)]))
|
|
2373
|
+
}()
|
|
2374
|
+
}
|
|
2375
|
+
#sourceLocation()
|
|
2376
|
+
public final func accessibilityScreenChanged__View() throws {
|
|
2377
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1138)
|
|
2378
|
+
try self.sendAccessibilityEvent(
|
|
2379
|
+
JSObject([("iosNotificationType", IOSPostAccessibilityNotificationType.Screen)]))
|
|
2380
|
+
}
|
|
2381
|
+
#sourceLocation()
|
|
2382
|
+
open func toUIGlassStyle(_ value: String? = nil) -> Any? {
|
|
2383
|
+
if #available(iOS 26, *) {
|
|
2384
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1144)
|
|
2385
|
+
if Core_utils_constants.supportsGlass() {
|
|
2386
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1145)
|
|
2387
|
+
switch value {
|
|
2388
|
+
case "regular":
|
|
2389
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1147)
|
|
2390
|
+
do {
|
|
2391
|
+
return Double(UIGlassEffect.Style.regular.rawValue)
|
|
2392
|
+
}
|
|
2393
|
+
case "clear":
|
|
2394
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1149)
|
|
2395
|
+
do {
|
|
2396
|
+
return Double(UIGlassEffect.Style.clear.rawValue)
|
|
2397
|
+
}
|
|
2398
|
+
default:
|
|
2399
|
+
break
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1152)
|
|
2403
|
+
return Double(1)
|
|
2404
|
+
} else {
|
|
2405
|
+
jsReportUncaught(jsUnavailable(26).value)
|
|
2406
|
+
return nil
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
#sourceLocation()
|
|
2410
|
+
open override func _getCurrentLayoutBounds() throws -> Any? {
|
|
2411
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1156)
|
|
2412
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
2413
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1157)
|
|
2414
|
+
if jsTruthy(nativeView) && !jsTruthy(self.isCollapsed) {
|
|
2415
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1158)
|
|
2416
|
+
let frame: CGRect = try jsUnwrap(nativeView, "frame").frame
|
|
2417
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1159)
|
|
2418
|
+
let origin: CGPoint = frame.origin
|
|
2419
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1160)
|
|
2420
|
+
let size: CGSize = frame.size
|
|
2421
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1162)
|
|
2422
|
+
return try JSObject([
|
|
2423
|
+
("left", jsRound(NativeScriptKit.layout.toDevicePixels(Double(origin.x)))),
|
|
2424
|
+
("top", jsRound(NativeScriptKit.layout.toDevicePixels(Double(origin.y)))),
|
|
2425
|
+
("right", jsRound(NativeScriptKit.layout.toDevicePixels(Double(origin.x) + Double(size.width)))),
|
|
2426
|
+
("bottom", jsRound(NativeScriptKit.layout.toDevicePixels(Double(origin.y) + Double(size.height)))),
|
|
2427
|
+
])
|
|
2428
|
+
} else {
|
|
2429
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1169)
|
|
2430
|
+
return JSObject([("left", Double(0)), ("top", Double(0)), ("right", Double(0)), ("bottom", Double(0))])
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
#sourceLocation()
|
|
2434
|
+
open override func _redrawNativeBackground(_ value: Any?) throws {
|
|
2435
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1174)
|
|
2436
|
+
let updateSuspended: Bool = self._isPresentationLayerUpdateSuspended()
|
|
2437
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1175)
|
|
2438
|
+
if !updateSuspended {
|
|
2439
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1176)
|
|
2440
|
+
CATransaction.begin()
|
|
2441
|
+
}
|
|
2442
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1179)
|
|
2443
|
+
CATransaction.setDisableActions(true)
|
|
2444
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1181)
|
|
2445
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
2446
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1182)
|
|
2447
|
+
if jsTruthy(nativeView) {
|
|
2448
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1183)
|
|
2449
|
+
if value is UIColor {
|
|
2450
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1184)
|
|
2451
|
+
try jsUnwrap(nativeView, setting: "backgroundColor").backgroundColor = (value as? UIColor)
|
|
2452
|
+
} else {
|
|
2453
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1186)
|
|
2454
|
+
try NativeScriptKit.ios__background_ios.createBackgroundUIColor(
|
|
2455
|
+
self,
|
|
2456
|
+
{ (color: UIColor?) throws -> Void in
|
|
2457
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1187)
|
|
2458
|
+
try jsUnwrap(nativeView, setting: "backgroundColor").backgroundColor = color
|
|
2459
|
+
})
|
|
2460
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1189)
|
|
2461
|
+
try self._setNativeClipToBounds()
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1193)
|
|
2465
|
+
CATransaction.setDisableActions(false)
|
|
2466
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1194)
|
|
2467
|
+
if !updateSuspended {
|
|
2468
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1195)
|
|
2469
|
+
CATransaction.commit()
|
|
2470
|
+
}
|
|
2471
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1198)
|
|
2472
|
+
self._nativeBackgroundState = "drawn"
|
|
2473
|
+
}
|
|
2474
|
+
#sourceLocation()
|
|
2475
|
+
public final func _redrawNativeBackground__View(_ value: Any?) throws {
|
|
2476
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1174)
|
|
2477
|
+
let updateSuspended: Bool = self._isPresentationLayerUpdateSuspended()
|
|
2478
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1175)
|
|
2479
|
+
if !updateSuspended {
|
|
2480
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1176)
|
|
2481
|
+
CATransaction.begin()
|
|
2482
|
+
}
|
|
2483
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1179)
|
|
2484
|
+
CATransaction.setDisableActions(true)
|
|
2485
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1181)
|
|
2486
|
+
let nativeView: UIView? = self.nativeViewProtected as? UIView
|
|
2487
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1182)
|
|
2488
|
+
if jsTruthy(nativeView) {
|
|
2489
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1183)
|
|
2490
|
+
if value is UIColor {
|
|
2491
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1184)
|
|
2492
|
+
try jsUnwrap(nativeView, setting: "backgroundColor").backgroundColor = (value as? UIColor)
|
|
2493
|
+
} else {
|
|
2494
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1186)
|
|
2495
|
+
try NativeScriptKit.ios__background_ios.createBackgroundUIColor(
|
|
2496
|
+
self,
|
|
2497
|
+
{ (color: UIColor?) throws -> Void in
|
|
2498
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1187)
|
|
2499
|
+
try jsUnwrap(nativeView, setting: "backgroundColor").backgroundColor = color
|
|
2500
|
+
})
|
|
2501
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1189)
|
|
2502
|
+
try self._setNativeClipToBounds()
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1193)
|
|
2506
|
+
CATransaction.setDisableActions(false)
|
|
2507
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1194)
|
|
2508
|
+
if !updateSuspended {
|
|
2509
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1195)
|
|
2510
|
+
CATransaction.commit()
|
|
2511
|
+
}
|
|
2512
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1198)
|
|
2513
|
+
self._nativeBackgroundState = "drawn"
|
|
2514
|
+
}
|
|
2515
|
+
#sourceLocation()
|
|
2516
|
+
open override func _setNativeClipToBounds() throws {
|
|
2517
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1202)
|
|
2518
|
+
let view: UIView? = self.nativeViewProtected as? UIView
|
|
2519
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1203)
|
|
2520
|
+
if jsTruthy(view) {
|
|
2521
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1204)
|
|
2522
|
+
let backgroundInternal: Background? = try jsUnwrap(self.style, "backgroundInternal").backgroundInternal
|
|
2523
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1205)
|
|
2524
|
+
try jsUnwrap(view, setting: "clipsToBounds").clipsToBounds =
|
|
2525
|
+
(view is UIScrollView) || jsUnwrap(backgroundInternal, "hasBorderWidth").hasBorderWidth()
|
|
2526
|
+
|| jsUnwrap(backgroundInternal, "hasBorderRadius").hasBorderRadius()
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
#sourceLocation()
|
|
2530
|
+
public final func _setNativeClipToBounds__View() throws {
|
|
2531
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1202)
|
|
2532
|
+
let view: UIView? = self.nativeViewProtected as? UIView
|
|
2533
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1203)
|
|
2534
|
+
if jsTruthy(view) {
|
|
2535
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1204)
|
|
2536
|
+
let backgroundInternal: Background? = try jsUnwrap(self.style, "backgroundInternal").backgroundInternal
|
|
2537
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1205)
|
|
2538
|
+
try jsUnwrap(view, setting: "clipsToBounds").clipsToBounds =
|
|
2539
|
+
(view is UIScrollView) || jsUnwrap(backgroundInternal, "hasBorderWidth").hasBorderWidth()
|
|
2540
|
+
|| jsUnwrap(backgroundInternal, "hasBorderRadius").hasBorderRadius()
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
#sourceLocation()
|
|
2544
|
+
open func _setupPopoverControllerDelegate(_ controller: UIViewController?, _ parent: View?) throws {
|
|
2545
|
+
var parent: View? = parent
|
|
2546
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1210)
|
|
2547
|
+
let popoverPresentationController: UIPopoverPresentationController? = try jsUnwrap(
|
|
2548
|
+
controller, "popoverPresentationController"
|
|
2549
|
+
).popoverPresentationController
|
|
2550
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1211)
|
|
2551
|
+
self._popoverPresentationDelegate = try jsUnwrap(
|
|
2552
|
+
IOSHelper.UIPopoverPresentationControllerDelegateImp, "initWithOwnerAndCallback"
|
|
2553
|
+
).initWithOwnerAndCallback(JSWeakRef<View>(self), self._closeModalCallback)
|
|
2554
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1212)
|
|
2555
|
+
try jsUnwrap(popoverPresentationController, setting: "delegate").delegate = jsObjectRequired(
|
|
2556
|
+
self._popoverPresentationDelegate as? any UIPopoverPresentationControllerDelegate)
|
|
2557
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1213)
|
|
2558
|
+
var view: UIView?
|
|
2559
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1214)
|
|
2560
|
+
repeat {
|
|
2561
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1215)
|
|
2562
|
+
view = try (jsUnwrap(parent, "nativeViewProtected").nativeViewProtected as? UIView)
|
|
2563
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1216)
|
|
2564
|
+
parent = try (jsUnwrap(parent, "parent").parent as? View)
|
|
2565
|
+
} while jsTruthy(parent) && !jsTruthy(view)
|
|
2566
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1220)
|
|
2567
|
+
try jsUnwrap(popoverPresentationController, setting: "sourceView").sourceView = view
|
|
2568
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1221)
|
|
2569
|
+
try jsUnwrap(popoverPresentationController, setting: "sourceRect").sourceRect = CGRect(
|
|
2570
|
+
x: 0, y: 0, width: jsUnwrap(view, "frame").frame.size.width,
|
|
2571
|
+
height: jsUnwrap(view, "frame").frame.size.height)
|
|
2572
|
+
}
|
|
2573
|
+
#sourceLocation()
|
|
2574
|
+
open func _setupAdaptiveControllerDelegate(_ controller: UIViewController?) throws {
|
|
2575
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1225)
|
|
2576
|
+
self._adaptivePresentationDelegate = try jsUnwrap(
|
|
2577
|
+
IOSHelper.UIAdaptivePresentationControllerDelegateImp, "initWithOwnerAndCallback"
|
|
2578
|
+
).initWithOwnerAndCallback(JSWeakRef<View>(self), self._closeModalCallback)
|
|
2579
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1226)
|
|
2580
|
+
if jsTruthy((controller as UIViewController?)?.presentationController) {
|
|
2581
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1227)
|
|
2582
|
+
try jsUnwrap(jsUnwrap(controller, "presentationController").presentationController, setting: "delegate")
|
|
2583
|
+
.delegate = jsObjectRequired(
|
|
2584
|
+
self._adaptivePresentationDelegate as? any UIAdaptivePresentationControllerDelegate)
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
#sourceLocation()
|
|
2588
|
+
open override class func jsConstruct(_ __a: [Any?]) throws -> Any? { try View() }
|
|
2589
|
+
open override var jsDeclaredKeys: [String] {
|
|
2590
|
+
super.jsDeclaredKeys + ["_isLaidOut"] + ["_isTransformed"] + ["_privateFlags"] + ["_suspendCATransaction"]
|
|
2591
|
+
+ (jsMadeBits1 & (1 << 48) != 0 ? ["_popoverPresentationDelegate"] : [])
|
|
2592
|
+
+ (jsMadeBits1 & (1 << 49) != 0 ? ["_adaptivePresentationDelegate"] : [])
|
|
2593
|
+
+ (jsMadeBits1 & (1 << 50) != 0 ? ["_transitioningDelegate"] : [])
|
|
2594
|
+
+ (jsMadeBits1 & (1 << 51) != 0 ? ["_modalAnimatedOptions"] : [])
|
|
2595
|
+
+ (jsMadeBits1 & (1 << 52) != 0 ? ["_cachedFrame"] : [])
|
|
2596
|
+
+ (jsMadeBits1 & (1 << 53) != 0 ? ["_nativeBackgroundState"] : [])
|
|
2597
|
+
+ (jsMadeBits1 & (1 << 54) != 0 ? ["_glassEffectView"] : [])
|
|
2598
|
+
+ (jsMadeBits1 & (1 << 55) != 0 ? ["_glassEffectMeasure"] : [])
|
|
2599
|
+
}
|
|
2600
|
+
open override var jsClassName: String? { "View" }
|
|
2601
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
2602
|
+
get {
|
|
2603
|
+
switch key.utf8.count {
|
|
2604
|
+
case 5:
|
|
2605
|
+
switch key {
|
|
2606
|
+
case "focus": return FunctionCell_none_to_BoolOpt.script("focus", 0, self.focus)
|
|
2607
|
+
default: break
|
|
2608
|
+
}
|
|
2609
|
+
case 6:
|
|
2610
|
+
switch key {
|
|
2611
|
+
case "layout":
|
|
2612
|
+
return FunctionCell_Double_Double_Double_Double_BoolOpt_to_Void.script("layout", 4, self.layout)
|
|
2613
|
+
default: break
|
|
2614
|
+
}
|
|
2615
|
+
case 7:
|
|
2616
|
+
switch key {
|
|
2617
|
+
case "measure": return FunctionCell_Double_Double_to_Void.script("measure", 2, self.measure)
|
|
2618
|
+
default: break
|
|
2619
|
+
}
|
|
2620
|
+
case 8:
|
|
2621
|
+
switch key {
|
|
2622
|
+
case "onLayout":
|
|
2623
|
+
return FunctionCell_Double_Double_Double_Double_to_Void.script("onLayout", 4, self.onLayout)
|
|
2624
|
+
default: break
|
|
2625
|
+
}
|
|
2626
|
+
case 9:
|
|
2627
|
+
switch key {
|
|
2628
|
+
case "onMeasure": return FunctionCell_Double_Double_to_Void.script("onMeasure", 2, self.onMeasure)
|
|
2629
|
+
default: break
|
|
2630
|
+
}
|
|
2631
|
+
case 10:
|
|
2632
|
+
switch key {
|
|
2633
|
+
case "_isLaidOut": return self._isLaidOut
|
|
2634
|
+
default: break
|
|
2635
|
+
}
|
|
2636
|
+
case 12:
|
|
2637
|
+
switch key {
|
|
2638
|
+
case "_cachedFrame":
|
|
2639
|
+
if !(jsMadeBits1 & (1 << 52) != 0) { return nil }
|
|
2640
|
+
return self._cachedFrame
|
|
2641
|
+
default: break
|
|
2642
|
+
}
|
|
2643
|
+
case 13:
|
|
2644
|
+
switch key {
|
|
2645
|
+
case "_privateFlags": return self._privateFlags
|
|
2646
|
+
case "requestLayout": return FunctionCell_none_to_Void.script("requestLayout", 0, self.requestLayout)
|
|
2647
|
+
case "_layoutParent": return FunctionCell_none_to_Void.script("_layoutParent", 0, self._layoutParent)
|
|
2648
|
+
default: break
|
|
2649
|
+
}
|
|
2650
|
+
case 14:
|
|
2651
|
+
switch key {
|
|
2652
|
+
case "_isTransformed": return self._isTransformed
|
|
2653
|
+
case "_onSizeChanged": return FunctionCell_none_to_Void.script("_onSizeChanged", 0, self._onSizeChanged)
|
|
2654
|
+
case "toUIGlassStyle":
|
|
2655
|
+
return FunctionCell_StringOpt_to_AnyOpt.script("toUIGlassStyle", 1, self.toUIGlassStyle)
|
|
2656
|
+
default: break
|
|
2657
|
+
}
|
|
2658
|
+
case 15:
|
|
2659
|
+
switch key {
|
|
2660
|
+
case "_setLayoutFlags":
|
|
2661
|
+
return FunctionCell_Double_Double_Double_Double_to_Void.script(
|
|
2662
|
+
"_setLayoutFlags", 4, self._setLayoutFlags)
|
|
2663
|
+
default: break
|
|
2664
|
+
}
|
|
2665
|
+
case 16:
|
|
2666
|
+
switch key {
|
|
2667
|
+
case "_glassEffectView":
|
|
2668
|
+
if !(jsMadeBits1 & (1 << 54) != 0) { return nil }
|
|
2669
|
+
return self._glassEffectView
|
|
2670
|
+
case "updateBackground":
|
|
2671
|
+
return FunctionCell_Bool_Bool_to_Void.script("updateBackground", 2, self.updateBackground)
|
|
2672
|
+
case "layoutNativeView":
|
|
2673
|
+
return FunctionCell_Double_Double_Double_Double_to_Void.script(
|
|
2674
|
+
"layoutNativeView", 4, self.layoutNativeView)
|
|
2675
|
+
default: break
|
|
2676
|
+
}
|
|
2677
|
+
case 17:
|
|
2678
|
+
switch key {
|
|
2679
|
+
case "disposeNativeView":
|
|
2680
|
+
return FunctionCell_none_to_Void.script("disposeNativeView", 0, self.disposeNativeView)
|
|
2681
|
+
case "getSafeAreaInsets":
|
|
2682
|
+
return FunctionCell_none_to_AnyOpt.script("getSafeAreaInsets", 0, self.getSafeAreaInsets)
|
|
2683
|
+
case "updateOriginPoint":
|
|
2684
|
+
return FunctionCell_Double_Double_to_Void.script("updateOriginPoint", 2, self.updateOriginPoint)
|
|
2685
|
+
case "_applyGlassEffect":
|
|
2686
|
+
return FunctionCell_AnyOpt_AnyOpt_to_UIVisualEffectViewOpt.script(
|
|
2687
|
+
"_applyGlassEffect", 2, self._applyGlassEffect)
|
|
2688
|
+
default: break
|
|
2689
|
+
}
|
|
2690
|
+
case 18:
|
|
2691
|
+
switch key {
|
|
2692
|
+
case "layoutOuterShadows":
|
|
2693
|
+
return FunctionCell_none_to_Void.script("layoutOuterShadows", 0, self.layoutOuterShadows)
|
|
2694
|
+
default: break
|
|
2695
|
+
}
|
|
2696
|
+
case 19:
|
|
2697
|
+
switch key {
|
|
2698
|
+
case "_glassEffectMeasure":
|
|
2699
|
+
if !(jsMadeBits1 & (1 << 55) != 0) { return nil }
|
|
2700
|
+
return self._glassEffectMeasure
|
|
2701
|
+
case "_setNativeViewFrame":
|
|
2702
|
+
return FunctionCell_AnyOpt_AnyOpt_to_Void.script("_setNativeViewFrame", 2, self._setNativeViewFrame)
|
|
2703
|
+
case "applySafeAreaInsets":
|
|
2704
|
+
return FunctionCell_CGRect_to_CGRectOpt.script("applySafeAreaInsets", 1, self.applySafeAreaInsets)
|
|
2705
|
+
case "_setDefaultPaddings":
|
|
2706
|
+
return FunctionCell_AnyOpt_to_Void.script("_setDefaultPaddings", 1, self._setDefaultPaddings)
|
|
2707
|
+
case "getLocationInWindow":
|
|
2708
|
+
return FunctionCell_none_to_PointOpt.script("getLocationInWindow", 0, self.getLocationInWindow)
|
|
2709
|
+
case "getLocationOnScreen":
|
|
2710
|
+
return FunctionCell_none_to_PointOpt.script("getLocationOnScreen", 0, self.getLocationOnScreen)
|
|
2711
|
+
default: break
|
|
2712
|
+
}
|
|
2713
|
+
case 20:
|
|
2714
|
+
switch key {
|
|
2715
|
+
case "setMeasuredDimension":
|
|
2716
|
+
return FunctionCell_Double_Double_to_Void.script(
|
|
2717
|
+
"setMeasuredDimension", 2, self.setMeasuredDimension)
|
|
2718
|
+
case "_showNativeModalView":
|
|
2719
|
+
return FunctionCell_ViewCommonOpt_AnyOpt_to_Void.script(
|
|
2720
|
+
"_showNativeModalView", 2, self._showNativeModalView)
|
|
2721
|
+
case "_hideNativeModalView":
|
|
2722
|
+
return FunctionCell_ViewCommonOpt_to_Void_to_Void.script(
|
|
2723
|
+
"_hideNativeModalView", 2, self._hideNativeModalView)
|
|
2724
|
+
case "updateStatusBarStyle":
|
|
2725
|
+
return FunctionCell_String_to_Void.script("updateStatusBarStyle", 1, self.updateStatusBarStyle)
|
|
2726
|
+
default: break
|
|
2727
|
+
}
|
|
2728
|
+
case 21:
|
|
2729
|
+
switch key {
|
|
2730
|
+
case "_modalAnimatedOptions":
|
|
2731
|
+
if !(jsMadeBits1 & (1 << 51) != 0) { return nil }
|
|
2732
|
+
return self._modalAnimatedOptions
|
|
2733
|
+
case "_suspendCATransaction": return self._suspendCATransaction
|
|
2734
|
+
case "getLocationRelativeTo":
|
|
2735
|
+
return FunctionCell_ViewCommonOpt_to_PointOpt.script(
|
|
2736
|
+
"getLocationRelativeTo", 1, self.getLocationRelativeTo)
|
|
2737
|
+
case "updateNativeTransform":
|
|
2738
|
+
return FunctionCell_none_to_Void.script("updateNativeTransform", 0, self.updateNativeTransform)
|
|
2739
|
+
default: break
|
|
2740
|
+
}
|
|
2741
|
+
case 22:
|
|
2742
|
+
switch key {
|
|
2743
|
+
case "_transitioningDelegate":
|
|
2744
|
+
if !(jsMadeBits1 & (1 << 50) != 0) { return nil }
|
|
2745
|
+
return self._transitioningDelegate
|
|
2746
|
+
case "_nativeBackgroundState": return self._nativeBackgroundState
|
|
2747
|
+
case "_modifyNativeViewFrame":
|
|
2748
|
+
return FunctionCell_AnyOpt_AnyOpt_to_Void.script(
|
|
2749
|
+
"_modifyNativeViewFrame", 2, self._modifyNativeViewFrame)
|
|
2750
|
+
case "sendAccessibilityEvent":
|
|
2751
|
+
return FunctionCell_AnyOpt_to_Void.script("sendAccessibilityEvent", 1, self.sendAccessibilityEvent)
|
|
2752
|
+
case "_setNativeClipToBounds":
|
|
2753
|
+
return FunctionCell_none_to_Void.script("_setNativeClipToBounds", 0, self._setNativeClipToBounds)
|
|
2754
|
+
default: break
|
|
2755
|
+
}
|
|
2756
|
+
case 23:
|
|
2757
|
+
switch key {
|
|
2758
|
+
case "_getCurrentLayoutBounds":
|
|
2759
|
+
return FunctionCell_none_to_AnyOpt.script(
|
|
2760
|
+
"_getCurrentLayoutBounds", 0, self._getCurrentLayoutBounds)
|
|
2761
|
+
case "_redrawNativeBackground":
|
|
2762
|
+
return FunctionCell_AnyOpt_to_Void.script(
|
|
2763
|
+
"_redrawNativeBackground", 1, self._redrawNativeBackground)
|
|
2764
|
+
default: break
|
|
2765
|
+
}
|
|
2766
|
+
case 25:
|
|
2767
|
+
switch key {
|
|
2768
|
+
case "accessibilityAnnouncement":
|
|
2769
|
+
return FunctionCell_StringOpt_to_Void.script(
|
|
2770
|
+
"accessibilityAnnouncement", 0, self.accessibilityAnnouncement)
|
|
2771
|
+
default: break
|
|
2772
|
+
}
|
|
2773
|
+
case 26:
|
|
2774
|
+
switch key {
|
|
2775
|
+
case "setAccessibilityIdentifier":
|
|
2776
|
+
return FunctionCell_AnyOpt_String_to_Void.script(
|
|
2777
|
+
"setAccessibilityIdentifier", 2, self.setAccessibilityIdentifier)
|
|
2778
|
+
case "accessibilityScreenChanged":
|
|
2779
|
+
return FunctionCell_BoolOpt_to_Void.script(
|
|
2780
|
+
"accessibilityScreenChanged", 0, self.accessibilityScreenChanged)
|
|
2781
|
+
default: break
|
|
2782
|
+
}
|
|
2783
|
+
case 28:
|
|
2784
|
+
switch key {
|
|
2785
|
+
case "_popoverPresentationDelegate":
|
|
2786
|
+
if !(jsMadeBits1 & (1 << 48) != 0) { return nil }
|
|
2787
|
+
return self._popoverPresentationDelegate
|
|
2788
|
+
default: break
|
|
2789
|
+
}
|
|
2790
|
+
case 29:
|
|
2791
|
+
switch key {
|
|
2792
|
+
case "_adaptivePresentationDelegate":
|
|
2793
|
+
if !(jsMadeBits1 & (1 << 49) != 0) { return nil }
|
|
2794
|
+
return self._adaptivePresentationDelegate
|
|
2795
|
+
case "_childIndexToNativeChildIndex":
|
|
2796
|
+
return FunctionCell_DoubleOpt_to_DoubleOpt.script(
|
|
2797
|
+
"_childIndexToNativeChildIndex", 1, self._childIndexToNativeChildIndex)
|
|
2798
|
+
default: break
|
|
2799
|
+
}
|
|
2800
|
+
case 31:
|
|
2801
|
+
switch key {
|
|
2802
|
+
case "_resumePresentationLayerUpdates":
|
|
2803
|
+
return FunctionCell_none_to_Void.script(
|
|
2804
|
+
"_resumePresentationLayerUpdates", 0, self._resumePresentationLayerUpdates)
|
|
2805
|
+
case "_setupPopoverControllerDelegate":
|
|
2806
|
+
return FunctionCell_UIViewControllerOpt_ViewOpt_to_Void.script(
|
|
2807
|
+
"_setupPopoverControllerDelegate", 2, self._setupPopoverControllerDelegate)
|
|
2808
|
+
default: break
|
|
2809
|
+
}
|
|
2810
|
+
case 32:
|
|
2811
|
+
switch key {
|
|
2812
|
+
case "_suspendPresentationLayerUpdates":
|
|
2813
|
+
return FunctionCell_none_to_Void.script(
|
|
2814
|
+
"_suspendPresentationLayerUpdates", 0, self._suspendPresentationLayerUpdates)
|
|
2815
|
+
case "_setupAdaptiveControllerDelegate":
|
|
2816
|
+
return FunctionCell_UIViewControllerOpt_to_Void.script(
|
|
2817
|
+
"_setupAdaptiveControllerDelegate", 1, self._setupAdaptiveControllerDelegate)
|
|
2818
|
+
default: break
|
|
2819
|
+
}
|
|
2820
|
+
case 35:
|
|
2821
|
+
switch key {
|
|
2822
|
+
case "_isPresentationLayerUpdateSuspended":
|
|
2823
|
+
return FunctionCell_none_to_Bool.script(
|
|
2824
|
+
"_isPresentationLayerUpdateSuspended", 0, self._isPresentationLayerUpdateSuspended)
|
|
2825
|
+
default: break
|
|
2826
|
+
}
|
|
2827
|
+
default: break
|
|
2828
|
+
}
|
|
2829
|
+
return super[jsKey: key]
|
|
2830
|
+
}
|
|
2831
|
+
set {
|
|
2832
|
+
switch key.utf8.count {
|
|
2833
|
+
case 10:
|
|
2834
|
+
switch key {
|
|
2835
|
+
case "_isLaidOut":
|
|
2836
|
+
jsStoring { self._isLaidOut = (try jsConvertedBool(newValue)) }
|
|
2837
|
+
return
|
|
2838
|
+
default: break
|
|
2839
|
+
}
|
|
2840
|
+
case 12:
|
|
2841
|
+
switch key {
|
|
2842
|
+
case "_cachedFrame":
|
|
2843
|
+
self._cachedFrame = jsNativeStructPresent(newValue, CGRect.self)
|
|
2844
|
+
return
|
|
2845
|
+
default: break
|
|
2846
|
+
}
|
|
2847
|
+
case 13:
|
|
2848
|
+
switch key {
|
|
2849
|
+
case "_privateFlags":
|
|
2850
|
+
jsStoring { self._privateFlags = (try jsConvertedNumber(newValue)) }
|
|
2851
|
+
return
|
|
2852
|
+
default: break
|
|
2853
|
+
}
|
|
2854
|
+
case 14:
|
|
2855
|
+
switch key {
|
|
2856
|
+
case "_isTransformed":
|
|
2857
|
+
jsStoring { self._isTransformed = (try jsConvertedBool(newValue)) }
|
|
2858
|
+
return
|
|
2859
|
+
default: break
|
|
2860
|
+
}
|
|
2861
|
+
case 16:
|
|
2862
|
+
switch key {
|
|
2863
|
+
case "_glassEffectView":
|
|
2864
|
+
self._glassEffectView = (newValue as? UIVisualEffectView)
|
|
2865
|
+
return
|
|
2866
|
+
default: break
|
|
2867
|
+
}
|
|
2868
|
+
case 19:
|
|
2869
|
+
switch key {
|
|
2870
|
+
case "_glassEffectMeasure":
|
|
2871
|
+
self._glassEffectMeasure = newValue
|
|
2872
|
+
return
|
|
2873
|
+
default: break
|
|
2874
|
+
}
|
|
2875
|
+
case 21:
|
|
2876
|
+
switch key {
|
|
2877
|
+
case "_modalAnimatedOptions":
|
|
2878
|
+
self._modalAnimatedOptions = jsArrayOrNil(newValue, { jsLenientBool($0) })
|
|
2879
|
+
return
|
|
2880
|
+
case "_suspendCATransaction":
|
|
2881
|
+
jsStoring { self._suspendCATransaction = (try jsConvertedBool(newValue)) }
|
|
2882
|
+
return
|
|
2883
|
+
default: break
|
|
2884
|
+
}
|
|
2885
|
+
case 22:
|
|
2886
|
+
switch key {
|
|
2887
|
+
case "_transitioningDelegate":
|
|
2888
|
+
self._transitioningDelegate = (newValue as? UIViewControllerTransitioningDelegateImpl)
|
|
2889
|
+
return
|
|
2890
|
+
case "_nativeBackgroundState":
|
|
2891
|
+
jsStoring { self._nativeBackgroundState = (try jsConvertedString(newValue)) }
|
|
2892
|
+
return
|
|
2893
|
+
default: break
|
|
2894
|
+
}
|
|
2895
|
+
case 28:
|
|
2896
|
+
switch key {
|
|
2897
|
+
case "_popoverPresentationDelegate":
|
|
2898
|
+
self._popoverPresentationDelegate = newValue
|
|
2899
|
+
return
|
|
2900
|
+
default: break
|
|
2901
|
+
}
|
|
2902
|
+
case 29:
|
|
2903
|
+
switch key {
|
|
2904
|
+
case "_adaptivePresentationDelegate":
|
|
2905
|
+
self._adaptivePresentationDelegate = newValue
|
|
2906
|
+
return
|
|
2907
|
+
default: break
|
|
2908
|
+
}
|
|
2909
|
+
default: break
|
|
2910
|
+
}
|
|
2911
|
+
super[jsKey: key] = newValue
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
open override class var jsName: String { "View" }
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
@MainActor
|
|
2918
|
+
public final class UIViewControllerTransitioningDelegateImpl: NSObject, UIViewControllerTransitioningDelegate,
|
|
2919
|
+
JSNativeMembers
|
|
2920
|
+
{
|
|
2921
|
+
nonisolated deinit {}
|
|
2922
|
+
public var owner: JSWeakRef<NativeScriptKit.ModalTransition>?
|
|
2923
|
+
public static func initWithOwner(_ owner: JSWeakRef<NativeScriptKit.ModalTransition>?) throws
|
|
2924
|
+
-> NativeScriptKit.UIViewControllerTransitioningDelegateImpl
|
|
2925
|
+
{
|
|
2926
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1239)
|
|
2927
|
+
let delegate: NativeScriptKit.UIViewControllerTransitioningDelegateImpl? =
|
|
2928
|
+
UIViewControllerTransitioningDelegateImpl()
|
|
2929
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1240)
|
|
2930
|
+
try jsUnwrap(delegate, setting: "owner").owner = owner
|
|
2931
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1241)
|
|
2932
|
+
return try jsObjectRequired(delegate)
|
|
2933
|
+
}
|
|
2934
|
+
#sourceLocation()
|
|
2935
|
+
public nonisolated func animationController(forDismissed dismissed: UIViewController) -> (
|
|
2936
|
+
any UIViewControllerAnimatedTransitioning
|
|
2937
|
+
)? {
|
|
2938
|
+
if jsOffScriptThread() { return jsAwait { self.animationController(forDismissed: dismissed) } }
|
|
2939
|
+
return jsOnMainThread(dismissed) { (dismissed) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2940
|
+
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2941
|
+
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2942
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1245)
|
|
2943
|
+
let owner: NativeScriptKit.ModalTransition? =
|
|
2944
|
+
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
2945
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1246)
|
|
2946
|
+
if jsTruthy(owner?.iosDismissedController as Any?) {
|
|
2947
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1247)
|
|
2948
|
+
return try jsObjectRequired(
|
|
2949
|
+
jsUnwrap(owner, "iosDismissedController").iosDismissedController(dismissed))
|
|
2950
|
+
}
|
|
2951
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1249)
|
|
2952
|
+
return nil
|
|
2953
|
+
}
|
|
2954
|
+
return __result
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
#sourceLocation()
|
|
2958
|
+
public nonisolated func animationController(
|
|
2959
|
+
forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController
|
|
2960
|
+
) -> (any UIViewControllerAnimatedTransitioning)? {
|
|
2961
|
+
if jsOffScriptThread() {
|
|
2962
|
+
return jsAwait { self.animationController(forPresented: presented, presenting: presenting, source: source) }
|
|
2963
|
+
}
|
|
2964
|
+
return jsOnMainThread(presented, presenting, source) {
|
|
2965
|
+
(presented, presenting, source) -> (any UIViewControllerAnimatedTransitioning)? in
|
|
2966
|
+
let __result: any UIViewControllerAnimatedTransitioning? = jsReportedOrZero {
|
|
2967
|
+
() throws -> any UIViewControllerAnimatedTransitioning? in
|
|
2968
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1253)
|
|
2969
|
+
let owner: NativeScriptKit.ModalTransition? =
|
|
2970
|
+
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
2971
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1254)
|
|
2972
|
+
if jsTruthy(owner?.iosPresentedController as Any?) {
|
|
2973
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1255)
|
|
2974
|
+
return try jsObjectRequired(
|
|
2975
|
+
jsUnwrap(owner, "iosPresentedController").iosPresentedController(presented, presenting, source))
|
|
2976
|
+
}
|
|
2977
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1257)
|
|
2978
|
+
return nil
|
|
2979
|
+
}
|
|
2980
|
+
return __result
|
|
2981
|
+
}
|
|
2982
|
+
}
|
|
2983
|
+
#sourceLocation()
|
|
2984
|
+
public nonisolated func interactionControllerForDismissal(using animator: any UIViewControllerAnimatedTransitioning)
|
|
2985
|
+
-> (any UIViewControllerInteractiveTransitioning)?
|
|
2986
|
+
{
|
|
2987
|
+
if jsOffScriptThread() { return jsAwait { self.interactionControllerForDismissal(using: animator) } }
|
|
2988
|
+
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
2989
|
+
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
2990
|
+
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
2991
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1261)
|
|
2992
|
+
let owner: NativeScriptKit.ModalTransition? =
|
|
2993
|
+
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
2994
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1262)
|
|
2995
|
+
if jsTruthy(owner?.iosInteractionDismiss as Any?) {
|
|
2996
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1263)
|
|
2997
|
+
let transitionState: Any? = try SharedTransition.getState(jsUnwrap(owner, "id").id)
|
|
2998
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1264)
|
|
2999
|
+
if try jsConvertedBool(jsGetIfPresent(transitionState, "interactiveBegan")) {
|
|
3000
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1265)
|
|
3001
|
+
return try jsObjectRequired(
|
|
3002
|
+
jsUnwrap(owner, "iosInteractionDismiss").iosInteractionDismiss(animator))
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1268)
|
|
3006
|
+
return nil
|
|
3007
|
+
}
|
|
3008
|
+
return __result
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
#sourceLocation()
|
|
3012
|
+
public nonisolated func interactionControllerForPresentation(
|
|
3013
|
+
using animator: any UIViewControllerAnimatedTransitioning
|
|
3014
|
+
) -> (any UIViewControllerInteractiveTransitioning)? {
|
|
3015
|
+
if jsOffScriptThread() { return jsAwait { self.interactionControllerForPresentation(using: animator) } }
|
|
3016
|
+
return jsOnMainThread(animator) { (animator) -> (any UIViewControllerInteractiveTransitioning)? in
|
|
3017
|
+
let __result: any UIViewControllerInteractiveTransitioning? = jsReportedOrZero {
|
|
3018
|
+
() throws -> any UIViewControllerInteractiveTransitioning? in
|
|
3019
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1272)
|
|
3020
|
+
let owner: NativeScriptKit.ModalTransition? =
|
|
3021
|
+
(self.owner as JSWeakRef<NativeScriptKit.ModalTransition>?)?.deref()
|
|
3022
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1273)
|
|
3023
|
+
if jsTruthy(owner?.iosInteractionPresented as Any?) {
|
|
3024
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1274)
|
|
3025
|
+
return try jsObjectRequired(
|
|
3026
|
+
jsUnwrap(owner, "iosInteractionPresented").iosInteractionPresented(animator))
|
|
3027
|
+
}
|
|
3028
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1276)
|
|
3029
|
+
return nil
|
|
3030
|
+
}
|
|
3031
|
+
return __result
|
|
3032
|
+
}
|
|
3033
|
+
}
|
|
3034
|
+
#sourceLocation()
|
|
3035
|
+
public func jsMember(_ key: String) -> Any?? {
|
|
3036
|
+
switch key {
|
|
3037
|
+
case "owner": return .some(self.owner as Any?)
|
|
3038
|
+
default: return nil
|
|
3039
|
+
}
|
|
3040
|
+
}
|
|
3041
|
+
public func jsSetMember(_ key: String, _ newValue: Any?) -> Bool {
|
|
3042
|
+
switch key {
|
|
3043
|
+
case "owner":
|
|
3044
|
+
self.owner = (newValue as? JSWeakRef<NativeScriptKit.ModalTransition>)
|
|
3045
|
+
return true
|
|
3046
|
+
default: return false
|
|
3047
|
+
}
|
|
3048
|
+
}
|
|
3049
|
+
}
|
|
3050
|
+
|
|
3051
|
+
open class ContainerView: View {
|
|
3052
|
+
nonisolated deinit {}
|
|
3053
|
+
public override init() throws {
|
|
3054
|
+
try super.init()
|
|
3055
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1283)
|
|
3056
|
+
self.iosOverflowSafeArea = true
|
|
3057
|
+
}
|
|
3058
|
+
#sourceLocation()
|
|
3059
|
+
open override class func jsConstruct(_ __a: [Any?]) throws -> Any? { try ContainerView() }
|
|
3060
|
+
open override var jsClassName: String? { "ContainerView" }
|
|
3061
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
3062
|
+
get {
|
|
3063
|
+
return super[jsKey: key]
|
|
3064
|
+
}
|
|
3065
|
+
set {
|
|
3066
|
+
super[jsKey: key] = newValue
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
open override class var jsName: String { "ContainerView" }
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
open class CustomLayoutView: ContainerView {
|
|
3073
|
+
nonisolated deinit {}
|
|
3074
|
+
public override init() throws {
|
|
3075
|
+
try super.init()
|
|
3076
|
+
}
|
|
3077
|
+
open override var ios: Any? {
|
|
3078
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1297)
|
|
3079
|
+
return (self.nativeViewProtected as? UIView)
|
|
3080
|
+
}
|
|
3081
|
+
#sourceLocation()
|
|
3082
|
+
open override func createNativeView() throws -> Any? {
|
|
3083
|
+
let __result: UIView? = try { () throws -> UIView? in
|
|
3084
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1292)
|
|
3085
|
+
let window: Any? = try Core_utils_native_helper.getWindow()
|
|
3086
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1293)
|
|
3087
|
+
return try UIView(
|
|
3088
|
+
frame: jsNativeStructPresent(
|
|
3089
|
+
(jsTruthy(window)
|
|
3090
|
+
? jsGet(jsGet(window, "screen"), "bounds")
|
|
3091
|
+
: (jsUnwrap(UIScreen.main, "bounds").bounds as Any?)), CGRect.self))
|
|
3092
|
+
}()
|
|
3093
|
+
return __result
|
|
3094
|
+
}
|
|
3095
|
+
#sourceLocation()
|
|
3096
|
+
public final func createNativeView__CustomLayoutView() throws -> UIView? {
|
|
3097
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1292)
|
|
3098
|
+
let window: Any? = try Core_utils_native_helper.getWindow()
|
|
3099
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1293)
|
|
3100
|
+
return try UIView(
|
|
3101
|
+
frame: jsNativeStructPresent(
|
|
3102
|
+
(jsTruthy(window)
|
|
3103
|
+
? jsGet(jsGet(window, "screen"), "bounds") : (jsUnwrap(UIScreen.main, "bounds").bounds as Any?)),
|
|
3104
|
+
CGRect.self))
|
|
3105
|
+
}
|
|
3106
|
+
#sourceLocation()
|
|
3107
|
+
open override func onMeasure(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
3108
|
+
|
|
3109
|
+
}
|
|
3110
|
+
public final func onMeasure__CustomLayoutView(_ widthMeasureSpec: Double, _ heightMeasureSpec: Double) throws {
|
|
3111
|
+
|
|
3112
|
+
}
|
|
3113
|
+
open override func _addViewToNativeVisualTree(_ __b0: ViewBase?, _ __b1: Double? = nil) throws -> Bool {
|
|
3114
|
+
let child: View? = __b0 as? View
|
|
3115
|
+
let atIndex: Double? = __b1
|
|
3116
|
+
let __result: Bool = try { () throws -> Bool in
|
|
3117
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1305)
|
|
3118
|
+
_ = try super._addViewToNativeVisualTree(child, atIndex)
|
|
3119
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1307)
|
|
3120
|
+
let parentNativeView: UIView? = self.nativeViewProtected as? UIView
|
|
3121
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1308)
|
|
3122
|
+
let childNativeView: Any? = try jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView
|
|
3123
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1310)
|
|
3124
|
+
if jsTruthy(parentNativeView) && jsTruthy(childNativeView) {
|
|
3125
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1311)
|
|
3126
|
+
try IOSHelper.insertNativeSubview(parentNativeView, (childNativeView as? UIView), atIndex)
|
|
3127
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1314)
|
|
3128
|
+
if try
|
|
3129
|
+
(jsTruthy(jsGet(childNativeView, "outerShadowContainerLayer"))
|
|
3130
|
+
&& !(jsTruthy(jsGet(jsGet(childNativeView, "outerShadowContainerLayer"), "superlayer"))))
|
|
3131
|
+
{
|
|
3132
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1315)
|
|
3133
|
+
try jsUnwrap(jsUnwrap(parentNativeView, "layer").layer, "insertSublayerBelow").insertSublayer(
|
|
3134
|
+
jsNativeObject(jsGet(childNativeView, "outerShadowContainerLayer"), CALayer.self),
|
|
3135
|
+
below: (jsFlat(jsGet(childNativeView, "layer")) as? CALayer))
|
|
3136
|
+
}
|
|
3137
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1318)
|
|
3138
|
+
return true
|
|
3139
|
+
}
|
|
3140
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1321)
|
|
3141
|
+
return false
|
|
3142
|
+
}()
|
|
3143
|
+
return __result
|
|
3144
|
+
}
|
|
3145
|
+
#sourceLocation()
|
|
3146
|
+
public final func _addViewToNativeVisualTree__CustomLayoutView(_ child: View?, _ atIndex: Double) throws -> Bool {
|
|
3147
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1305)
|
|
3148
|
+
_ = try super._addViewToNativeVisualTree(child, atIndex)
|
|
3149
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1307)
|
|
3150
|
+
let parentNativeView: UIView? = self.nativeViewProtected as? UIView
|
|
3151
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1308)
|
|
3152
|
+
let childNativeView: Any? = try jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView
|
|
3153
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1310)
|
|
3154
|
+
if jsTruthy(parentNativeView) && jsTruthy(childNativeView) {
|
|
3155
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1311)
|
|
3156
|
+
try IOSHelper.insertNativeSubview(parentNativeView, (childNativeView as? UIView), atIndex)
|
|
3157
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1314)
|
|
3158
|
+
if try
|
|
3159
|
+
(jsTruthy(jsGet(childNativeView, "outerShadowContainerLayer"))
|
|
3160
|
+
&& !(jsTruthy(jsGet(jsGet(childNativeView, "outerShadowContainerLayer"), "superlayer"))))
|
|
3161
|
+
{
|
|
3162
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1315)
|
|
3163
|
+
try jsUnwrap(jsUnwrap(parentNativeView, "layer").layer, "insertSublayerBelow").insertSublayer(
|
|
3164
|
+
jsNativeObject(jsGet(childNativeView, "outerShadowContainerLayer"), CALayer.self),
|
|
3165
|
+
below: (jsFlat(jsGet(childNativeView, "layer")) as? CALayer))
|
|
3166
|
+
}
|
|
3167
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1318)
|
|
3168
|
+
return true
|
|
3169
|
+
}
|
|
3170
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1321)
|
|
3171
|
+
return false
|
|
3172
|
+
}
|
|
3173
|
+
#sourceLocation()
|
|
3174
|
+
open override func _removeViewFromNativeVisualTree(_ __b0: ViewBase?) throws {
|
|
3175
|
+
let child: View? = __b0 as? View
|
|
3176
|
+
_ = try { () throws -> Void in
|
|
3177
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1325)
|
|
3178
|
+
try super._removeViewFromNativeVisualTree(child)
|
|
3179
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1327)
|
|
3180
|
+
if try jsTruthy((jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView)) {
|
|
3181
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1328)
|
|
3182
|
+
let nativeView: Any? = try jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView
|
|
3183
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1331)
|
|
3184
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
3185
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1332)
|
|
3186
|
+
_ = try jsCallMethod(jsGet(nativeView, "outerShadowContainerLayer"), "removeFromSuperlayer")
|
|
3187
|
+
}
|
|
3188
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1335)
|
|
3189
|
+
_ = try jsCallMethod(nativeView, "removeFromSuperview")
|
|
3190
|
+
}
|
|
3191
|
+
}()
|
|
3192
|
+
}
|
|
3193
|
+
#sourceLocation()
|
|
3194
|
+
public final func _removeViewFromNativeVisualTree__CustomLayoutView(_ child: View?) throws {
|
|
3195
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1325)
|
|
3196
|
+
try super._removeViewFromNativeVisualTree(child)
|
|
3197
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1327)
|
|
3198
|
+
if try jsTruthy((jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView)) {
|
|
3199
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1328)
|
|
3200
|
+
let nativeView: Any? = try jsUnwrap(child, "nativeViewProtected").nativeViewProtected as? UIView
|
|
3201
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1331)
|
|
3202
|
+
if try jsTruthy(jsGet(nativeView, "outerShadowContainerLayer")) {
|
|
3203
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1332)
|
|
3204
|
+
_ = try jsCallMethod(jsGet(nativeView, "outerShadowContainerLayer"), "removeFromSuperlayer")
|
|
3205
|
+
}
|
|
3206
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1335)
|
|
3207
|
+
_ = try jsCallMethod(nativeView, "removeFromSuperview")
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
#sourceLocation()
|
|
3211
|
+
open override class func jsConstruct(_ __a: [Any?]) throws -> Any? { try CustomLayoutView() }
|
|
3212
|
+
open override var jsClassName: String? { "CustomLayoutView" }
|
|
3213
|
+
open override subscript(jsKey key: String) -> Any? {
|
|
3214
|
+
get {
|
|
3215
|
+
switch key.utf8.count {
|
|
3216
|
+
case 9:
|
|
3217
|
+
switch key {
|
|
3218
|
+
case "onMeasure": return FunctionCell_Double_Double_to_Void.script("onMeasure", 2, self.onMeasure)
|
|
3219
|
+
default: break
|
|
3220
|
+
}
|
|
3221
|
+
case 16:
|
|
3222
|
+
switch key {
|
|
3223
|
+
case "createNativeView":
|
|
3224
|
+
return FunctionCell_none_to_AnyOpt.script("createNativeView", 0, self.createNativeView)
|
|
3225
|
+
default: break
|
|
3226
|
+
}
|
|
3227
|
+
case 26:
|
|
3228
|
+
switch key {
|
|
3229
|
+
case "_addViewToNativeVisualTree":
|
|
3230
|
+
return FunctionCell_ViewBaseOpt_DoubleOpt_to_Bool.script(
|
|
3231
|
+
"_addViewToNativeVisualTree", 2, self._addViewToNativeVisualTree)
|
|
3232
|
+
default: break
|
|
3233
|
+
}
|
|
3234
|
+
case 31:
|
|
3235
|
+
switch key {
|
|
3236
|
+
case "_removeViewFromNativeVisualTree":
|
|
3237
|
+
return FunctionCell_ViewBaseOpt_to_Void.script(
|
|
3238
|
+
"_removeViewFromNativeVisualTree", 1, self._removeViewFromNativeVisualTree)
|
|
3239
|
+
default: break
|
|
3240
|
+
}
|
|
3241
|
+
default: break
|
|
3242
|
+
}
|
|
3243
|
+
return super[jsKey: key]
|
|
3244
|
+
}
|
|
3245
|
+
set {
|
|
3246
|
+
super[jsKey: key] = newValue
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
open override class var jsName: String { "CustomLayoutView" }
|
|
3250
|
+
}
|
|
3251
|
+
|
|
3252
|
+
public enum Core_ui_core_view_index {
|
|
3253
|
+
public static let PFLAG_FORCE_LAYOUT: Double = 1
|
|
3254
|
+
public static let PFLAG_MEASURED_DIMENSION_SET: Double = jsShiftLeft(1, 1)
|
|
3255
|
+
public static let PFLAG_LAYOUT_REQUIRED: Double = jsShiftLeft(1, 2)
|
|
3256
|
+
public static var requestedThisTurn: JSSet<View>? = nil
|
|
3257
|
+
public static func isAncestorChainLayoutRequested(_ view: View?) throws -> Bool {
|
|
3258
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:34)
|
|
3259
|
+
var parent: View? = try jsUnwrap(view, "parent").parent as? View
|
|
3260
|
+
while jsTruthy(parent) {
|
|
3261
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:35)
|
|
3262
|
+
if try !(jsUnwrap(parent, "isLayoutRequested").isLayoutRequested) {
|
|
3263
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:36)
|
|
3264
|
+
return false
|
|
3265
|
+
}
|
|
3266
|
+
try parent = (jsUnwrap(parent, "parent").parent as? View)
|
|
3267
|
+
}
|
|
3268
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:39)
|
|
3269
|
+
return true
|
|
3270
|
+
}
|
|
3271
|
+
}
|
|
3272
|
+
|
|
3273
|
+
#sourceLocation()
|
|
3274
|
+
public func __init_Core_ui_core_view_index() {
|
|
3275
|
+
jsReport {
|
|
3276
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:42)
|
|
3277
|
+
JSPrototypes.declare(
|
|
3278
|
+
View.self, "nativeBackgroundState",
|
|
3279
|
+
get: { (__this: Any?) throws -> Any? in
|
|
3280
|
+
guard let __o = __this as? View else { throw JSException(JSTypeError("Illegal invocation")) }
|
|
3281
|
+
return __o.nativeBackgroundState
|
|
3282
|
+
}, set: nil)
|
|
3283
|
+
JSPrototypes.declare(
|
|
3284
|
+
View.self, "isLayoutRequired",
|
|
3285
|
+
get: { (__this: Any?) throws -> Any? in
|
|
3286
|
+
guard let __o = __this as? View else { throw JSException(JSTypeError("Illegal invocation")) }
|
|
3287
|
+
return __o.isLayoutRequired
|
|
3288
|
+
}, set: nil)
|
|
3289
|
+
JSPrototypes.declare(
|
|
3290
|
+
View.self, "isLayoutRequested",
|
|
3291
|
+
get: { (__this: Any?) throws -> Any? in
|
|
3292
|
+
guard let __o = __this as? View else { throw JSException(JSTypeError("Illegal invocation")) }
|
|
3293
|
+
return __o.isLayoutRequested
|
|
3294
|
+
}, set: nil)
|
|
3295
|
+
JSPrototypes.declare(
|
|
3296
|
+
View.self, "isLayoutValid",
|
|
3297
|
+
get: { (__this: Any?) throws -> Any? in
|
|
3298
|
+
guard let __o = __this as? View else { throw JSException(JSTypeError("Illegal invocation")) }
|
|
3299
|
+
return __o.isLayoutValid
|
|
3300
|
+
}, set: nil)
|
|
3301
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:42)
|
|
3302
|
+
|
|
3303
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1231)
|
|
3304
|
+
try jsSet(JSPrototypes.of(View.self), "_nativeBackgroundState", "unset")
|
|
3305
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1233)
|
|
3306
|
+
|
|
3307
|
+
#sourceLocation(file:"@nativescript/core/ui.core.view.index.ios.ts",line:1287)
|
|
3308
|
+
JSPrototypes.declare(
|
|
3309
|
+
CustomLayoutView.self, "ios",
|
|
3310
|
+
get: { (__this: Any?) throws -> Any? in
|
|
3311
|
+
guard let __o = __this as? CustomLayoutView else {
|
|
3312
|
+
throw JSException(JSTypeError("Illegal invocation"))
|
|
3313
|
+
}
|
|
3314
|
+
return __o.ios
|
|
3315
|
+
}, set: nil)
|
|
3316
|
+
}
|
|
3317
|
+
}
|
|
3318
|
+
#sourceLocation()
|