upperLimbVisibility(_:)
Sets the preferred visibility of the user’s upper limbs, while an Immersivespace scene is presented.
Declaration
nonisolated func upperLimbVisibility(_ preferredVisibility: Visibility) -> some View
Parameters
- preferredVisibility:
A value indicating if the upper limbs should be visible. Use
.automaticfor a system-defined standard behavior,.visibleto keep the upper limbs visible, and.hiddento hide the upper limbs.
Discussion
The system can show the user’s upper limbs during fully immersive experiences, but you can also hide them, for example, in order to display virtual hands instead.
Note that this modifier only sets a preference and ultimately the system will decide if it will honor it or not. The system may be unable to honor the preference if the immersive space is currently not visible.