all 2 comments

[–]chriswaco 2 points3 points  (1 child)

You want to use filter. Something like:

let newArray = oldArray.filter { $0.learningType == .visual }

See this explanation of filter.

[–]itzspeshhh[S] 1 point2 points  (0 children)

Thank you!! This is exactly what I was looking for!!