mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(visionos): ui-mobile-base supporting xros plus improvements to window handling (#10478)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user