public struct JobDetailView: View { @Environment(\.modelContext) private var modelContext @Environment(\.presentationMode) var presentationMode @Bindable var job: SurfaceJob var navigationPath: NavigationPath @State private var isFirstAppearance = true @State private var unitsDisplay = 0 @State private var xyUnits = 0 @State private var cutUnits = 0 ... if unitsDisplay > 1 { Picker("Units", selection: $xyUnits) { Text("Inches").tag(0) Text("mm").tag(1) } .pickerStyle(SegmentedPickerStyle()) } else { xyUnits = Int(unitsDisplay). // Type '()' cannot conform to 'View' EmptyView()