Why has forEach been deprecated?

What should we do instead?

Accepted Answer

Not w/Swift. Wrong forums.


You must meanSwiftUI - where it's not simply forEach, but apparently associated initializers, I think. See https://developer.apple.com/documentation/swiftui/foreach/3347365-init


If you can show your usage/code that prompted the deprecation warning, perhaps someone can flesh it out for you. Be sure to use the SwiftUI forum, tho, thanks. Might want to move this thread there.

Why has forEach been deprecated?
 
 
Q