get list of property values from list of objects swift

The solution for “get list of property values from list of objects swift” can be found here. The following code will assist you in solving the problem.

let new_list = your_list.map{ $0 }

Map will transform a list of some types to a list of another types

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in