Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a raywenderlich.com Beginner subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

ForEach & Identifiable

Dynamic Features in Swift

Note: In this episode, you may see the now-obsolete #if DEBUG macro, which used to be utilised for previews to run in the canvas. This is now no longer necessary, and you can safely ignore it. We’ve removed it from the project for convenience as well.

ForEach makes it a breeze when iterating over a collection of data to produce similar SwiftUI Views. All you need is a unique ID for each element.

Contributors

Reviews

Comments