AppKit API for hovering.
Asked on 2024-07-30
1 search
For information on the AppKit API for hovering, you can refer to the session titled "What’s new in AppKit" from WWDC 2024. This session covers various new API refinements, including those related to hover effects and context menus.
You can find more details on the new AppKit API refinements starting at the chapter marker for "API refinements" in the session:
- What’s new in AppKit (08:20)
Additionally, for custom hover effects in SwiftUI, you might find the session "Create custom hover effects in visionOS" useful. This session explains how to create custom hover effects using the new API in VisionOS, which can also be applied to SwiftUI views:
For accessibility considerations related to hover effects in SwiftUI, you can refer to the session "Catch up on accessibility in SwiftUI":
These sessions should provide a comprehensive overview of the new capabilities and best practices for implementing hover effects in your macOS and VisionOS applications.

What’s new in AppKit
Discover the latest advances in Mac app development. Get an overview of the new features in macOS Sequoia, and how to adopt them in your app. Explore new ways to integrate your existing code with SwiftUI. Learn about the improvements made to numerous AppKit controls, like toolbars, menus, text input, and more.

Create custom hover effects in visionOS
Learn how to develop custom hover effects that update views when people look at them. Find out how to build an expanding button effect that combines opacity, scale, and clip effects. Discover best practices for creating effects that are comfortable and respect people’s accessibility needs.

Discover RealityKit APIs for iOS, macOS and visionOS
Learn how new cross-platform APIs in RealityKit can help you build immersive apps for iOS, macOS, and visionOS. Check out the new hover effects, lights and shadows, and portal crossing features, and view them in action through real examples.
