You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using LazyVStack or ForEach, all content gets loaded immediately instead of when they become visible. I can get it to work with a List, but since that doesn't work with enableAppleScrollBehavior, the content scrolls before the list is expanded, completely breaking the scroll effect where the bottom sheet first expands before the content scrolls, so the user would have to use the little anchor to manually expand the sheet.
Minimal reproduce-able code
create a bottom sheet with 3 states and enableAppleScrollBehavior enabled.
contentView:
LazyVStack(alignment:.leading){ForEach(items, id: \.id){ item in
Text(item.name).onAppear {print("Appeared: \(item.id") } }}
Expected behavior
The content in LazyVStack to call onAppear only when it becomes visible
Target version
Environment: iOS iPhone 14 pro max simulator
Version: iOS 16.1 with project targeting iOS 14.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When using LazyVStack or ForEach, all content gets loaded immediately instead of when they become visible. I can get it to work with a List, but since that doesn't work with
enableAppleScrollBehavior
, the content scrolls before the list is expanded, completely breaking the scroll effect where the bottom sheet first expands before the content scrolls, so the user would have to use the little anchor to manually expand the sheet.Minimal reproduce-able code
create a bottom sheet with 3 states and
enableAppleScrollBehavior
enabled.contentView:
Expected behavior
The content in LazyVStack to call
onAppear
only when it becomes visibleTarget version
The text was updated successfully, but these errors were encountered: