When does SwiftUI View Re-Render?

  Рет қаралды 2,440

azamsharp

azamsharp

Күн бұрын

Пікірлер: 11
@jarektrojanowicz
@jarektrojanowicz 2 жыл бұрын
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?
@hammad0
@hammad0 2 жыл бұрын
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
@shivanshkumar1134 Жыл бұрын
Really helpful video to understand the rendering process of Views based on State changes
@ramunas_
@ramunas_ Жыл бұрын
Thanks for good tutorial. I am getting problem, which says: ImmersiveScene: @self changed. How to investigate why did it happen?
@EmanNollase
@EmanNollase 2 жыл бұрын
..similar to jetpack compose recomposition, it only recompose the component that state changes
@hungwaikay7747
@hungwaikay7747 11 ай бұрын
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?
@priceringo1756
@priceringo1756 2 жыл бұрын
Great use of Instruments to really nail down the point.
@indiekiduk
@indiekiduk 2 жыл бұрын
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.
@azamsharp
@azamsharp 2 жыл бұрын
Yes. That is what I explained in the video.
@pavanmanjani7583
@pavanmanjani7583 2 жыл бұрын
Superb 👌
@saurabh9446
@saurabh9446 2 жыл бұрын
Need more of instruments 🔥🔥
Performing Network Operations Using MV State Pattern in SwiftUI
28:59
SwiftUI Performance Tips - iOS Conf SG 2023
24:16
iOS Conf SG
Рет қаралды 4 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 96 МЛН
Prevent SwiftUI from re-rendering views
11:21
Mike Mikina
Рет қаралды 2,2 М.
Programmatic Navigation in SwiftUI explained
17:50
donny wals
Рет қаралды 7 М.
STOP Using MVVM with SwiftUI
18:30
azamsharp
Рет қаралды 17 М.
5 Steps to Better SwiftUI Views
31:19
Paul Hudson
Рет қаралды 56 М.
@EnvironmentObject Explained in SwiftUI | iOS 17
21:16
AppStuff
Рет қаралды 7 М.
How to use the Obsidian Dataview plugin
16:11
Nicole van der Hoeven
Рет қаралды 221 М.
Refresh SwiftUI View Programmatically
4:44
Flo writes Code
Рет қаралды 1,7 М.