Post

Replies

Boosts

Views

Activity

Reply to Check if iOS 14 is available in SwiftUI body
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
Jul ’21