Skip to content

0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Kyle-Ye Kyle-Ye released this 15 Jun 19:23
· 93 commits to main since this release
77bfa8c

Milestone:

  • Add ZStack
  • Add overlay and background support
  • Add Color opacity support
  • Add layoutPriority support
  • Fix broken SPI documentation link
import OpenSwiftUI

struct ContentView: View {
    var body: some View {
        ZStack(alignment: .leading) {
            Color.red
                .opacity(0.5)
                .frame(width: 200, height: 200)
        }
        .overlay(alignment: .topLeading) {
            Color.green.opacity(0.5)
                .frame(width: 100, height: 100)
        }
        .background(alignment: .bottomTrailing) {
            Color.blue.opacity(0.5)
                .frame(width: 100, height: 100)
        }
    }
}
iPhone Screenshot Mac Screenshot

What's Changed

Full Changelog: 0.3.0...0.4.0