Performance between LazyVStack, VStack and List

Опубликовано: 04 Сентябрь 2021
на канале: Swift and Tips
9,560
256

Hello guys!

I started this channel talking about stacks in SwiftUI, today we will talk about another stack: LazyVStack.

Let's see what's the difference between regular VStack and List. By the way, we will focus only on vertical stacks, but this also will apply to horizontal ones.

Content:
0:00 - Intro
0:39 - What is a VStack?
3:21 - LazyVStack to the rescue!
4:41 - List vs LazyVstack
5:46 - VStack loading images from the network ❌
6:52 - More between List and LazyVStack
7:45 - Do you want to learn more?


------

Source code showed in the video: https://github.com/pitt500/Pokedex/tr...

------
Resources:
LazyVStack: https://developer.apple.com/documenta...
Stacks, Grids, and Outlines in SwiftUI: https://developer.apple.com/videos/pl...

------
Other videos in the channel:
CacheAsyncImage:    • A better AsyncImage with cache in Swi...  
What's new in SwiftUI 3.0:    • What's new in SwiftUI 3.0? #WWDC21  
Swift Concurrency:    • Swift Concurrency  


-----
Don't forget to subscribe to the channel, like it, and follow me on social media:

Twitter:
  / swiftandtips  
  / pitt500  

Finally, ask me for a video you would like to see next 😄!

Credits:
Music by Wataboi from https://pixabay.com/
Video edited with LumaFusion


Смотрите видео Performance between LazyVStack, VStack and List онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift and Tips 04 Сентябрь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,560 раз и оно понравилось 256 людям.