Very excited about the new eye tracking in iPadOS and iOS 18. Some general eye tracking questions.
-
Does the initial iPadOS 18 beta include eye tracking? If not, in which beta will it be included?
-
Do developers need to do anything to their app for users to control their app using eye tracking?
-
Will all standard UIKit and SwiftUI views and controls work with eye tracking without code changes?
-
Will custom subclasses of UIControl work with eye tracking without code changes?
Looking forward to testing eye tracking.
Hi risingtide,
- Yes, iPadOS & iOS 18 beta 1 include Eye Tracking;
- In the vast majority of cases, you shouldn't need to do anything! I'll elaborate in the two answers below :)
- Yes, all standard UIKit & SwiftUI views are expected to just work with Eye Tracking with no additional changes needed.
- For custom subclasses of UIControl, please make sure you return
UIAccessibilityTrait.Button
as part of that control'saccessibilityTraits
. Similarly for more custom SwiftUI views/controls, Eye Tracking's Snap to Item feature will only focus on things that have theisButton
accessibility trait added with theaccessibilityAddTraits(_:)
modifier.
Hope this helps!