SwiftUI Picker展开时无背景的问题求助
SwiftUI Picker展开时无背景的问题求助
大家好,我遇到了一个SwiftUI Picker的奇怪问题:我的Picker代码逻辑很简单,但点击展开选项的时候,弹窗完全没有背景显示。
我测试的设备情况如下:
- 在iPhone 16e模拟器(系统版本26.0.1)中出现该问题
- 在iPhone SE第三代(iOS 18.2)上运行完全正常
以下是我的代码片段:
NavigationView { Form { Section(NSLocalizedString("location_section_title", comment: "search_criteria_secton_title_location")) { Picker(NSLocalizedString("country_title", comment: "search_criteria_country_title"), selection: $viewmodel.searchCriteria.marketplace) { ForEach(viewmodel.marketplaces, id: \.self) { Text($0.countryInEnglish).tag($0) } } } } }
附上问题的截图:
备注:内容来源于stack exchange,提问作者S. Gissel
相关产品推荐
相关产品推荐

