Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Use LazyVStack for all unknown-length lists #1096

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct RecentTabView: View {
var body: some View {
if let user = store.state.user,
let recent = store.state.recentEntries {
VStack(spacing: AppTheme.unit2) {
LazyVStack(spacing: AppTheme.unit2) {
ForEach(recent) { entry in
StoryEntryView(
story: StoryEntry(
Expand Down Expand Up @@ -79,7 +79,7 @@ struct FollowTabView: View {

var body: some View {
if let following = store.state.following {
VStack(spacing: AppTheme.unit2) {
LazyVStack(spacing: AppTheme.unit2) {
ForEach(following) { follow in
StoryUserView(
story: follow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ struct TranscludeListView: View {
@Environment (\.colorScheme) var colorScheme

var body: some View {
VStack(spacing: AppTheme.unit2) {
LazyVStack(spacing: AppTheme.unit2) {
ForEach(entries, id: \.self) { entry in
VStack {
TranscludeView(
Expand Down
Loading