Перейти к содержимому

Prevent SwiftUI from re-rendering views

Mike Mikina

0:00 / 0:00

Prevent SwiftUI from re-rendering views

3 731 просмотр · 3 года назад
Mike Mikina
2,75 тыс. подписчиков
3 731 просмотр · 3 года назад
In one of the previous videos    • Learn when SwiftUI re-renders views   I explored how view rendering works in SwiftUI. In this video, you will learn how to prevent SwiftUI from re-rendering a view when two or more views are connected or nested. Link to the repository: https://github.com/mikina/RedrawingSw... 00:00 Intro 00:22 Demo app and the issue 07:39 Solution - use CurrentValueSubject from Combine 10:59 Outro #iOS #SwiftUI #xcode Music: Streambeats