Рет қаралды 9,318
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: github.com/pitt500/Pokedex/tr...
------
Resources:
* LazyVStack: developer.apple.com/documenta...
* Stacks, Grids, and Outlines in SwiftUI: developer.apple.com/videos/pl...
------
Other videos in the channel:
* CacheAsyncImage: • A better AsyncImage wi...
* What's new in SwiftUI 3.0: • What's new in SwiftUI ...
* 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 pixabay.com/
- Video edited with LumaFusion