I noticed that since iOS15 beta 5 my App crashes when I display two pickers in one list and try to select value from the second one. All works fine in latest iOS14. There is no StackTrace on crash, the app just closes on both simulator and on real device.
Sometimes this appears in the console: === AttributeGraph: cycle detected through attribute 196632 ===
Any idea why?
View to reproduce in latest Xcode 13 RC:
struct ContentView: View {
@State private var selected1 = 0
@State private var selected2 = 0
@State private var showPicker1 = false
@State private var showPicker2 = false
var body: some View {
NavigationView {
List {
HStack {
Text("Picker 1")
Spacer()
Text("\(selected1)").foregroundColor(.secondary)
}
.onTapGesture {
withAnimation {
self.showPicker1.toggle()
}
}
if showPicker1 {
Picker("", selection: $selected1) {
ForEach(1..<5) { idx in
Text("\(idx)").tag(idx)
}
}
.pickerStyle(.wheel)
.clipped()
}
HStack {
Text("Picker 2")
Spacer()
Text("\(selected2)").foregroundColor(.secondary)
}
.onTapGesture {
withAnimation {
self.showPicker2.toggle()
}
}
if showPicker2 {
Picker("", selection: $selected2) {
ForEach(1..<15) { idx in
Text("\(idx)").tag(idx)
}
}
.pickerStyle(.wheel)
.clipped()
}
}
.listStyle(.inset)
.navigationTitle("Picker")
}
}
}