Skip to content

Commit 2b0b1b7

Browse files
committed
Show by default when scroll restoration is disabled
1 parent 00342c1 commit 2b0b1b7

File tree

1 file changed

+1
-1
lines changed
  • Sources/LiveViewNative/Views/Layout Containers/Collection Containers

1 file changed

+1
-1
lines changed

Sources/LiveViewNative/Views/Layout Containers/Collection Containers/List.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ struct List<Root: RootRegistry>: View {
208208
}
209209
}
210210
}
211-
.opacity(didAttemptRestoration ? 1 : 0) // prevent flickering when restoring
211+
.opacity((id == nil || didAttemptRestoration) ? 1 : 0) // prevent flickering when restoring
212212
.task {
213213
defer { didAttemptRestoration = true }
214214

0 commit comments

Comments
 (0)