<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi" -->

---
title: WWDC26: Dive into lazy stacks and scrolling with SwiftUI...
description: A deep dive into SwiftUI lazy stacks (LazyVStack and LazyHStack) covering how they work internally, best practices, and common pitfalls. Key topics include:...
canonical: https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple | daily.dev
og:description: A deep dive into SwiftUI lazy stacks (LazyVStack and LazyHStack) covering how they work internally, best practices, and common pitfalls. Key topics include:...
og:url: https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi
og:image: https://api.daily.dev/og/posts/oI3FVYqMi.png
og:image:alt: WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple

**[Apple Developer](https://daily.dev/sources/appledeveloper)** · 21 min read · 0 upvotes · 0 comments

## Summary

A deep dive into SwiftUI lazy stacks (LazyVStack and LazyHStack) covering how they work internally, best practices, and common pitfalls. Key topics include: how lazy stacks estimate off-screen view heights and widths, the impact of views resolving to dynamic numbers of subviews, prefetching mechanics that improve scrolling performance, why you should avoid filtering data via conditional view bodies in leaf views, how to use onScrollTargetVisibilityChange instead of absolute content offsets, tips for programmatic scrolling, and why layout changes after onAppear hurt scroll reliability. Practical guidance is illustrated through an origami instruction app example.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=4FNbTRr5MtQ>

## Similar posts on daily.dev

- [Swift with Majid](https://daily.dev/posts/swift-with-majid-zyqopz3no) · Swift with Majid · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#ios](https://daily.dev/tags/ios), [#swiftui](https://daily.dev/tags/swiftui)

[View this post on daily.dev](https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple","url":"https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi"},"datePublished":"2026-06-08T21:25:25.805Z","dateModified":"2026-06-08T21:26:07.546Z","description":"A deep dive into SwiftUI lazy stacks (LazyVStack and LazyHStack) covering how they work internally, best practices, and common pitfalls. Key topics include:...","image":"https://i.ytimg.com/vi/4FNbTRr5MtQ/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/4FNbTRr5MtQ/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Apple Developer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Apple Developer","logo":"https://media.daily.dev/image/upload/s--CAtMViBl--/f_auto/v1711726806/logos/appledeveloper","url":"https://daily.dev/sources/appledeveloper"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/wwdc26-dive-into-lazy-stacks-and-scrolling-with-swiftui-apple-oi3fvyqmi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,ios,swiftui","timeRequired":"PT21M","video":{"@type":"VideoObject","name":"WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple","description":"A deep dive into SwiftUI lazy stacks (LazyVStack and LazyHStack) covering how they work internally, best practices, and common pitfalls. Key topics include:...","thumbnailUrl":"https://i.ytimg.com/vi/4FNbTRr5MtQ/sddefault.jpg","uploadDate":"2026-06-08T21:25:25.805Z","duration":"PT21M","url":"https://api.daily.dev/r/oI3FVYqMi","embedUrl":"https://www.youtube.com/embed/4FNbTRr5MtQ"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apple Developer","item":"https://daily.dev/sources/appledeveloper"},{"@type":"ListItem","position":3,"name":"WWDC26: Dive into lazy stacks and scrolling with SwiftUI | Apple"}]}
```

