Skip to content

0.13.0

Latest

Choose a tag to compare

@Kyle-Ye Kyle-Ye released this 03 Jan 20:17
· 1 commit to main since this release
c6e6fbd

Highlights

  • Add RenderBox and Path basic ABI support
  • Fix Transition Animation issue
  • Add AsyncRender system support
import OpenSwiftUI

struct ContentView: View {
    @State private var items = [6]

    var body: some View {
        VStack(spacing: 10) {
            ForEach(items, id: \.self) { item in
                Color.blue.opacity(Double(item) / 6.0)
                    .frame(height: 50)
                    .transition(.slide)
            }
        }
        .animation(.easeInOut(duration: 2), value: items)
        .onAppear {
            items.removeAll { $0 == 6 }
        }
    }
}
View 0x0000000103704330 at Time(seconds: 9.999930625781417e-07):
(display-list
  (item #:identity 1 #:version 1
    (frame (0.0 445.3333333333333; 402.0 50.0))
    (content-seed 3)
    (color #007AFFFF)))
Async view at Time(seconds: 0.0540470416599419):
(display-list
  (item #:identity 1 #:version 7
    (frame (0.052906036376953125 445.3333333333333; 402.0 50.0))
    (content-seed 3)
    (color #007AFFFF)))
...
Async view at Time(seconds: 2.0373803749971557):
(display-list
  (item #:identity 1 #:version 364
    (frame (402.0 445.3333333333333; 402.0 50.0))
    (content-seed 3)
    (color #007AFFFF)))
Async view at Time(seconds: 2.054047041659942):
(display-list)
View 0x0000000103704330 at Time(seconds: 2.054047041659942):
(display-list)

What's Changed

Full Changelog: 0.12.0...0.13.0