Also running into this issue:
extension View {
func listRow() -> some View {
let view = self
.frame(maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: .leading)
if #available(iOS 15, *) {
return AnyView(view.listRowSeparatorVisibility(.hidden).listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0)))
}
return AnyView(view.listRowInsets(EdgeInsets(top: -1, leading: 0, bottom: -1, trailing: 0)))
}
}
This crashes, among other approaches as well
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: