I have a simple picker control being used to make a selection ( using SegmentedPickerStyle() ) however when used it automatically closes after a few seconds without the user being able to make a selection.
I can't seem to see any reason why this is happening.
Using Xcode 13 beta and ios15
Any thoughts ... ?
Code for the picker control below
Picker("Category:", selection: $selectedCategory) {
ForEach(modelData.categories) { category in
HStack {
FAText(iconName: category.image, size: 12)
Text(category.name)
}
}
}
Picker(selection: $selectedTaskPriorityIndex, label: Text("")) {
ForEach(0 ..< taskPriority.count) {
Image(systemName: "\(self.taskPriority[$0])")
}
}
.pickerStyle(SegmentedPickerStyle())