Skip to content

1.0.0 Release Candidate 5

Compare
Choose a tag to compare
@ra1028 ra1028 released this 23 Oct 08:58
· 17 commits to master since this release
d697d02

Enhancement

  • Add support for SwiftUI compatibility 🎉 (#58)
struct HelloMessage: Component, View {
    ...
}

struct ContentView: View {
    var body: some View {
        ScrollView {
            VStack {
                Text("GREET")
                    .font(.title)
                    .padding(.horizontal, 16)

                HelloMessage("World")
                    .frame(height: 60)
                    .background(Color.red)
            }
        }
    }
}
  • Add Group.init without elements (#50)

Breaking Changes

  • Add Component.intrinsicContentSize(for:) to get intrinsic content size for content to infer size of the UIView in SwiftUI (#58)