Skip to content

Releases: OpenSwiftUIProject/OpenSwiftUI

0.2.0

11 May 17:15
ad170f0
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

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

0.1.6

12 Mar 17:45
af2eae7
Compare
Choose a tag to compare
0.1.6 Pre-release
Pre-release

What's Changed

Full Changelog: 0.1.5...0.1.6

0.1.5

23 Feb 18:31
a1cd25e
Compare
Choose a tag to compare
0.1.5 Pre-release
Pre-release

Milestone:

  • Add onAppear/onDisappear and id support
截屏2025-02-24 02 29 51

Note

  • No render support yet
  • Only AnyView / EmptyView / Color is supported so far
  • Only iOS simulator platform is supported so far

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

What's Changed

Read more

0.1.0

06 Apr 12:38
2b0da4d
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

Milestone:

  • Complete the body accessor logic

image

Note

  • No render support yet
  • Only AnyView and EmptyView is supported so far

What's Changed

Full Changelog: 0.0.4...0.1.0