SwiftUI and the iPadOS pointer

What are the best practices for building for the iPadOS pointer when primarily building with SwiftUI?

Answered by Frameworks Engineer in 615782022
For best design practices, the guidelines are the same as when using UIKit. See the Human Interface Guidelines and pointer related videos from WWDC20 (Design for the iPadOS pointer and Build for the iPadOS pointer).

As for the API, SwiftUI's offerings are currently more limited than UIKit's. Take a look at the documentation for HoverEffect for more information.
Accepted Answer
For best design practices, the guidelines are the same as when using UIKit. See the Human Interface Guidelines and pointer related videos from WWDC20 (Design for the iPadOS pointer and Build for the iPadOS pointer).

As for the API, SwiftUI's offerings are currently more limited than UIKit's. Take a look at the documentation for HoverEffect for more information.
SwiftUI and the iPadOS pointer
 
 
Q