SwiftUI Tutorial: Core Concepts: Custom Modifiers - Part 3: Which Container View is Lazy?

preview_player
Показать описание
SwiftUI Tutorial: Core Concepts: Custom Modifiers - Part 3: Which Container View is Lazy?

In this episode we're going to be implementing a ViewModifier help us determine which of the container views in SwiftUI is lazy; List or VStack in a ScrollView? In this case a custom modifier is used to take the heavy lifting off our hands and do all the work for us behind the scenes which we can then tap into in our UI (or wherever we want to analyse the data).

================

PureSwiftUI is a free Swift Package that includes a multitude of useful extensions and properties to make your life easier with SwiftUI resulting in cleaner code that takes less time to write.

It's a huge time-saver so I do encourage you to check it out.

You can get PureSwiftUI here:

Check out PureSwiftUITools for additional SwiftUI utility type things:

If you want to ask me a question or follow me for updates, you can do so on Twitter:
Рекомендации по теме
Комментарии
Автор

Utterly ridiculously difficult.... how did you ever figure this out? I guess your years of experience are showing.

Also... I think that I can’t wait for the next one of these brilliant videos!

robertshatto
Автор

i think lazyvstack creates items lazily but once you scroll down to end it will creates all items and keeps in memory so no recycling like list?

pavankumar.m