feat(visionos): ui-mobile-base supporting xros plus improvements to window handling (#10478)

This commit is contained in:
Nathan Walker
2024-04-05 17:07:16 -07:00
committed by GitHub
parent 9ca490250e
commit 01d537bf15
242 changed files with 8658 additions and 2099 deletions

View File

@@ -1,6 +1,8 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" class="page">
<StackLayout>
<DatePicker day="1" month="9" year="2017" verticalAlignment="center"/>
<DatePicker day="1" month="10" year="2017" verticalAlignment="center"/>
</StackLayout>
<ActionBar title="@nativescript/core DatePicker"/>
<GridLayout rows="auto,auto,auto,*" width="270" horizontalAlignment="center" marginRight="60">
<DatePicker row="0" day="2" month="10" year="2023" verticalAlignment="center" horizontalAlignment="center" fontSize="40" marginTop="50" marginRight="30" />
<DatePicker row="1" day="2" month="10" year="2023" verticalAlignment="center" horizontalAlignment="center" fontSize="40" marginTop="10" marginRight="30" />
<DatePicker row="2" day="2" month="10" year="2023" verticalAlignment="center" horizontalAlignment="center" fontSize="40" marginTop="10" showTime="true" />
</GridLayout>
</Page>

View File

@@ -4,7 +4,7 @@ var platform = require('@nativescript/core/platform');
var defaultSpeed = -1;
export function navigatingTo(args: EventData) {
if (platform.device.os === platform.platformNames.ios) {
if (__APPLE__) {
if (defaultSpeed === -1) {
defaultSpeed = frameModule.topmost().ios.controller.view.layer.speed;
frameModule.topmost().ios.controller.navigationBar.translucent = false;
@@ -19,7 +19,7 @@ export function onTap() {
}
export function changeTranslucent() {
if (platform.device.os === platform.platformNames.ios) {
if (__APPLE__) {
frameModule.topmost().ios.controller.navigationBar.translucent = frameModule.topmost().ios.controller.navigationBar.translucent === true ? false : true;
}
}