SwiftUI Picker has no background

1 week ago 11
ARTICLE AD BOX

Note, NavigationView has been deprecated for years, use NavigationStack instead. NSLocalizedString is the old way of doing localization, just use the localized key directly, eg Picker("country_title", ...) same for Text(...). Also, do not use ForEach(viewmodel.marketplaces, id: \.self), make each viewmodel.marketplaces items Identifiable, and use ForEach(viewmodel.marketplaces). You could try using different style, such as .pickerStyle(.menu) etc... or add .listRowBackground(.pink)

2026-03-10 22:42:36 +00:00

Commented 9 hours ago

Read Entire Article