Data modeled with is observed by SwiftUI automatically. SwiftUI makes it easy to get started using SwiftData with just a single line of code. SwiftUI can adapt your widget’s color and spacing based on context across platforms. Bring your widgets to new places like StandBy on iPhone, the Lock Screen on iPad, and the desktop on Mac. Interactive widgetsĬreate interactive widgets using Button and Toggle. And you can use SwiftUI and RealityKit together to build Full Space immersive experiences. Use RealityView to bring in RealityKit content alongside your views and controls. When you recompile your SwiftUI apps for visionOS, you can add depth and 3D objects to windows or present volumes. Use to enable SwiftUI to automatically detect which fields are accessed by your views and speed up rendering by only redrawing when necessary. SwiftUI automatically transfers the velocity of a user gesture to your animations so your app feels fluid and natural. Use phases to create sequences of animations, or create multiple animation tracks using keyframes. Build sophisticated animations with expanded animation support.