Thanks for your reply.
I already submitted the feedback with number FB15723557.
We will wait to new updates then.
Best regards, Jose Antonio,
Post
Replies
Boosts
Views
Activity
The code from the first message works well, the problem its when its in a TabView with pagination in vertical page
struct ContentView: View {
@State var selection: Int = 1
var body: some View {
TabView(selection: $selection) {
Text("VIEW-ONE").tag(1)
ParentView().tag(2)
}.tabViewStyle(.verticalPage) // <---- THIS LINE
}
}
struct ParentView: View {
@FocusState private var focusedField: String?
var body: some View {
VStack {
ChildView1(focusedField: $focusedField)
ChildView2(focusedField: $focusedField)
}
}
}
struct ChildView1: View {
@FocusState.Binding var focusedField: String?
@State private var selectedValue: Int = 0
var body: some View {
Picker("First Picker", selection: $selectedValue) {
ForEach(0..<5) { index in
Text("Option \(index)").tag("child\(index)")
}
}.pickerStyle(WheelPickerStyle()).focused($focusedField, equals: "first")
}
}
struct ChildView2: View {
@FocusState.Binding var focusedField: String?
@State private var selectedValue: Int = 0
var body: some View {
Picker("Second Picker", selection: $selectedValue) {
ForEach(0..<5) { index in
Text("Option \(index)").tag("childTwo\(index)")
}
}.pickerStyle(WheelPickerStyle()).focused($focusedField, equals: "second")
}
}
Thanks for your fast reply, the number of report its FB13133538
I come here searching for exacting the same problem.
We have this bug since firsts betas
It is the first time in two years that this error appears
Restarting the iPhone solve my error