1

有没有办法修复所选行中不完整的分隔符?问题出在模拟器和真实设备中。

Xcode 12.4 和 iOS 14.4

问题

struct ContentView: View {
    var numbers = ["1", "2", "3", "4"]
    @State private var selectedIndex = 0
    
    var body: some View {
        NavigationView {
            Form {
                Section {
                    Picker(selection: $selectedIndex, label: Text("Test")) {
                        ForEach(0 ..< numbers.count) {
                            Text(self.numbers[$0])
                        }
                    }
                }
            }
        }
    }
}
4

0 回答 0