Does CoreGrahpics works with SwiftUI?
Asked on 2024-08-03
1 search
Yes, CoreGraphics works with SwiftUI. SwiftUI provides interoperability with other frameworks, including CoreGraphics. This allows you to integrate CoreGraphics functionality into your SwiftUI views. For example, you can use the GraphicsContext
in SwiftUI, which is the same type used by the Canvas
view, to draw custom graphics.
For more details, you can refer to the session SwiftUI essentials which discusses SDK interoperability, including how SwiftUI can interoperate with other frameworks like CoreGraphics.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

SwiftUI essentials
Join us on a tour of SwiftUI, Apple’s declarative user interface framework. Learn essential concepts for building apps in SwiftUI, like views, state variables, and layout. Discover the breadth of APIs for building fully featured experiences and crafting unique custom components. Whether you’re brand new to SwiftUI or an experienced developer, you’ll learn how to take advantage of what SwiftUI has to offer when building great apps.

What’s new in SwiftUI
Learn how you can use SwiftUI to build great apps for any Apple platform. Explore a fresh new look and feel for tabs and documents on iPadOS. Improve your window management with new windowing APIs, and gain more control over immersive spaces and volumes in your visionOS apps. We’ll also take you through other exciting refinements that help you make expressive charts, customize and layout text, and so much more.