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

Commit

Permalink
Use LazyVStack for all unknown-length lists
Browse files Browse the repository at this point in the history
  • Loading branch information
bfollington committed Feb 5, 2024
1 parent 0d6bd89 commit 2c25a40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 2c25a40

Please sign in to comment.