Metal-cpp and SwiftUI

Hello everyone

I want to take advantage of my knowledge of C++ more.
Is there a way to combine SwiftUI and metal-cpp ? (only examples using UIKit)
I like using SwiftUI over than UIKit

Thank you!

This year, Apple announced that you can use Swift (and therefore SwiftUI) in your C++ projects. This is the WWDC video:

There’s also associated sample code:

3 Likes

Thank you Caroline :blush:

1 Like

It seems that in WWDC23 Apple introduced more SwiftUI compatibility with Metal. Look here as well:

1 Like