1.0.0 Release Candidate 5
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)