Home > Software engineering >  How to map nested values of dictionary into array in iOS swift?
How to map nested values of dictionary into array in iOS swift?

Time:06-01

Type of selectBoxItems is [String : [String : SelectBoxTextField]]

I want to map selectBoxItems to get the result as [SelectBoxTextField]

How can I do it?

CodePudding user response:

selectBoxItems.values.flatMap(\.values)
  • Related