#LazyVStack

2023-10-09

#SwiftUI #UIViewRepresentable #ScrollView #LazyVStack

I’m working on a gnarly problem with LazyVStack in a scroll view, where the rows contain UITextView subclasses. When I focus on text view and keyboard comes up, the text view immediately loses focus if it’s towards the bottom of scroll view.

I’m debugging my views with `Self._printChanges()`, and it often tells me: `MyView: @self changed.` I suspect it’s related. Docs aren’t really clear: what does `@self changed` really mean here? 😀

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst