Ok. It’s clear. Thanks. Could you please do similar experiment with UIViewControllerRepresentable? Some time ago I noticed that it behaves differently, meaning that it is being rendered when it is evaluated. Can you please confirm or deny it?
@hammad02 жыл бұрын
know where to start a new soft and I didn't know how to switch from soft to . You are the best THANK YOU FOR NOT
@shivanshkumar1134 Жыл бұрын
Really helpful video to understand the rendering process of Views based on State changes
@ramunas_ Жыл бұрын
Thanks for good tutorial. I am getting problem, which says: ImmersiveScene: @self changed. How to investigate why did it happen?
@EmanNollase2 жыл бұрын
..similar to jetpack compose recomposition, it only recompose the component that state changes
@hungwaikay774711 ай бұрын
If the textfield is multilined, And asyncimage url don't depend on textfield(name), Will image need re-render when input to textfield such that it switched from 1 line to 2 lines expanding the total height of UI?
@priceringo17562 жыл бұрын
Great use of Instruments to really nail down the point.
@indiekiduk2 жыл бұрын
When the data passed into AsyncImage is different from last time, it's body is re-evaulated the same way as ContentView's body is re-evaluated when @State changes. i.e. body is called when a let or a state var is different from last time. I wouldn't call this re-rendering because that term is better suited to after SwiftUI diffs the body evaulations and uses the result to create/update UIView objects which then CoreGraphics renders to screen, e.g. in the drawRect method.