Skip to content

0.6.0

Pre-release
Pre-release

Choose a tag to compare

@Kyle-Ye Kyle-Ye released this 12 Jul 05:26
· 177 commits to main since this release
d8c8bf1

Milestone:

  • Add HVStack, Padding and Spacer support
  • Add offset and GeometryEffect support
import OpenSwiftUI

struct ContentView: View {
    var body: some View {
        VStack {
            HStack {
                Color.red.frame(width: 40, height: 40)
                Spacer()
                Color.blue.frame(width: 40, height: 40)
            }
            Spacer()
            Color.blue
                .frame(width: 80, height: 60)
                .background(Color.red.offset(x: -20, y: -15))
                .overlay(Color.green.offset(x: 20, y: 15))
            Spacer()
            HStack(spacing: 40) {
                Color.green.frame(width: 40, height: 40)
                Color.yellow.frame(width: 40, height: 40)
            }
        }
        .frame(width: 200, height: 200)
        .background(Color.gray.opacity(0.3))
    }
}
screenshot-mac

What's Changed

Full Changelog: 0.5.0...0.6.0