Загрузка...

LazyVGrid SwiftUI Tutorial 2026 — Adaptive, Lazy, Scrollable

A hundred photos. Two columns on iPhone, four on iPad, automatic on rotation, only the visible cells alive. Hand-rolling that with HStacks doesn't work - and Grid renders everything up front.

This video covers LazyVGrid end-to-end: the GridItem column system, the three sizing modes nobody explains well, pinned section headers, and a real Photos-style adaptive grid.

📌 What's covered:
— LazyVGrid + GridItem basics
— GridItem.fixed, .flexible, .adaptive — when to use which
— Spacing and alignment per column vs per grid
— Pinned section headers (sticky headers like Photos)
— Building a real adaptive photo grid that responds to rotation
— LazyHGrid — the horizontal counterpart

⭐ GitHub Repo: https://github.com/NDCSwift/LazyVGrid_SwiftUI

⏱️Timestamps
00:00 — Intro / What we're building
00:53 — LazyVGrid + GridItem
03:43 — The Three Sizing Modes
06:25 — Spacing and Alignment
07:42 — Pinned Section Headers
10:28 — A Real Color Grid
13:52 — Recap

→ Previous: Grid (the fixed, eager counterpart): https://youtu.be/LHeXajNcG_g

#SwiftUI #iOSDevelopment #SwiftUITutorial #AppleDeveloper #2026

Видео LazyVGrid SwiftUI Tutorial 2026 — Adaptive, Lazy, Scrollable канала NDC
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять