Skip to content

0.2.0

Pre-release
Pre-release

Choose a tag to compare

@Kyle-Ye Kyle-Ye released this 11 May 17:15
· 640 commits to main since this release
ad170f0

Milestone:

  • Add initial render support for OpenSwiftUI ๐ŸŽ‰
import OpenSwiftUI

struct ContentView: View {
    @State private var first = true
    var color: Color {
        Color(uiColor: first ? .red : .blue)
    }
    var body: some View {
        color
            .onAppear {
                DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
                    first.toggle()
                }
            }
            .id(first)
    }
}

Simulator Screen Recording - iPhone 16 Pro - 2025-05-12 at 00 59 15

Note

  • Only color render is support by now.
  • Currently we just use the SwiftUI Render.
  • No layout system support and the size is hard-coded.
  • Only iOS simulator platform is supported so far. (macOS support will be added later this week)

Follow the instruction in README to give it a try yourself.

What's Changed

New Contributors

Full Changelog: 0.1.6...0.2.0