RSSAmplifier

Ole Begemann · Dec 15, 2022

Understanding SwiftUI view lifecycles

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

I wrote an app called SwiftUI View Lifecycle . The app allows you to observe how different SwiftUI constructs and containers affect a view’s lifecycle, including the lifetime of its state and when onAppear gets called. The code for the app is on GitHub . It can be built for iOS and macOS. The view tree and the render tree When we write SwiftUI code, we construct a view tree that consists of nested…

Read on oleb.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.