You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guide/visionos.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,18 +139,18 @@ You can use new @nativescript/core APIs to easily enable visionOS [hover styles]
139
139
140
140
Apple discusses some of the important spatial considerations with these effects in [this session](https://developer.apple.com/videos/play/wwdc2023/111215/).
141
141
142
-
Each view can specify it's own custom `hoverStyle` as follows:
142
+
Each view can specify it's own custom `visionHoverStyle` as follows:
@@ -171,15 +171,15 @@ export type VisionHoverOptions = {
171
171
}
172
172
```
173
173
174
-
When a `string` is provided, it will look for predefined `hoverStyle`'s within the `TouchManager.visionHoverOptions` that match the string name. This allows you to predefine and share custom hoverStyle's across your entire app.
174
+
When a `string` is provided, it will look for predefined `visionHoverStyle`'s within the `TouchManager.visionHoverOptions` that match the string name. This allows you to predefine and share custom visionHoverStyle's across your entire app.
175
175
176
176
You can enable these effects globally throughout your app for any view which has a `tap` binding by enabling:
177
177
178
178
```ts
179
179
TouchManager.enableGlobalHoverWhereTap = true
180
180
```
181
181
182
-
This allows you to predefine any number of custom `hoverStyle`'s you'd like to use throughout your app. You could do so in the `app.ts` or `main.ts` (aka, bootstrap file), for example:
182
+
This allows you to predefine any number of custom `visionHoverStyle`'s you'd like to use throughout your app. You could do so in the `app.ts` or `main.ts` (aka, bootstrap file), for example:
You can also disable a hoverStyle on any view by adding the `visionIgnoreHoverStyle` property if desired.
213
213
214
214
::: info Note
215
-
When no `hoverStyle` is defined and not using `TouchManager.enableGlobalHoverWhereTap`, visionOS will use default behavior by enabling hoverStyle's on standard controls as mentioned. Other views would have no hoverStyle as expected.
215
+
When no `visionHoverStyle` is defined and not using `TouchManager.enableGlobalHoverWhereTap`, visionOS will use default behavior by enabling hoverStyle's on standard controls as mentioned. Other views would have no hoverStyle as expected.
0 commit comments