-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIbugSomething isn't workingSomething isn't workingcomposeLimitation of Jetpack Compose or issue with SwiftUI translationLimitation of Jetpack Compose or issue with SwiftUI translationlayoutSwiftUI/Jetpack Compose layout issuesSwiftUI/Jetpack Compose layout issues
Description
private struct LazyVGridSectionedView: View {
var body: some View {
ScrollView {
LazyVGrid(columns: [GridItem(.adaptive(minimum: 80))]) {
ForEach(0..<5) { index in
Section {
VGridCellsView(start: index * 100, count: 10, color: .yellow)
} header: {
Text("Section \(index) Header")
} footer: {
Text("Section footer")
}
.border(.orange)
}
}
}
}
}
Copy and paste Text("Section \(index) Header"), so there are two Text views in the header.
Expected: You should see both views, aligned vertically. (In LazyHGrid, they should be aligned horizontally.)
Actual: Only the first Text view renders.
Metadata
Metadata
Assignees
Labels
appearanceInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIInconsistencies between the expected appearance of components in Jetpack Compose vs. SwiftUIbugSomething isn't workingSomething isn't workingcomposeLimitation of Jetpack Compose or issue with SwiftUI translationLimitation of Jetpack Compose or issue with SwiftUI translationlayoutSwiftUI/Jetpack Compose layout issuesSwiftUI/Jetpack Compose layout issues