Skip to content

0.15.0

Choose a tag to compare

@Kyle-Ye Kyle-Ye released this 08 Feb 19:38
· 54 commits to main since this release
4190f6c

Highlights

  • Add OpenSwiftUI App lifecycle support
  • Add builtin shape view support
  • Add ForegroundStyle and BackgroundStyle support
  • Add shadow style support
  • Add more visual effects: ScaleEffect, BlurEffect, ClipEffect, ShadowEffect with corresponding transitions
import OpenSwiftUI

@main
struct ExampleApp: App {
    var body: some Scene {
        WindowGroup {
            FlowerView()
        }
    }
}

struct FlowerView: View {
    var body: some View {
        ZStack {
            ForEach(0..<6) { i in
                Capsule()
                    .fill(i.isMultiple(of: 2) ? .primary : .secondary)
                    .frame(width: 120, height: 40)
                    .rotationEffect(.degrees(Double(i) * 30))
                    .shadow(color: .purple, radius: 8, x: 4, y: 4)
            }
        }
        .foregroundStyle(.cyan, .orange)
    }
}
image

What's Changed

Full Changelog: 0.14.0...0.15.0