swiftbysundell.net - Swift by Sundell

Description: Weekly Swift articles, podcasts and tips by John Sundell

Example domain paragraphs

Articles, podcasts and news about Swift development, by John Sundell .

One of the most interesting aspects of SwiftUI, at least from an architectural perspective, is how it essentially treats views as data. After all, a SwiftUI view isn’t a direct representation of the pixels that are being rendered on the screen, but rather a description of how a given piece of UI should work, look, and behave.

That very data-driven approach gives us a ton of flexibility when it comes to how we structure our view code — to the point where one might even start to question what the difference actually is between defining a piece of UI as a view type, versus implementing that same code as a modifier instead.