Hello! I’m excited to see that Look to Scroll has been included in visionOS 26 Beta. I’m aiming to achieve a feature where the user’s gaze at a specific edge automatically scrolls to that position. However, I’ve experimented with ScrollView and haven’t been able to trigger this functionality. Could you advise if additional API modifiers are necessary? Thank you!
We can use scrollInputBehavior
with the .look
option
From WWDC Session What’s new in visionOS
var body: some View {
ScrollView {
HikeDetails()
}
.scrollInputBehavior(.enabled, for: .look)
}