New in SwiftUI 3: List and ForEach binding in SwiftUI

DevTechie
DevTechie
Published in
3 min readOct 5, 2021

--

SwiftUI’s List and ForEach are one of the most common views used to build UI. They are undoubtedly one of the feature pack views available in the framework as well.

Today, we will look at how to build out Twitter’s home page layout where retweet counts and like counts are incremented just by tapping on the buttons within each cell. Purpose of today’s article is to show the data binding capability available for us to use.

We will be building out following example where reply, retweet and like counts are increased…

--

--