From 108de7d137c7e7f1fe95266a538fc997763f7a59 Mon Sep 17 00:00:00 2001 From: ryoya ito Date: Thu, 3 Aug 2023 02:41:27 +0900 Subject: [PATCH] fix parameter name --- .../Sources/Timetable/TimetableListView.swift | 15 +++++++-------- .../Modules/Sources/Timetable/TimetableView.swift | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app-ios/Modules/Sources/Timetable/TimetableListView.swift b/app-ios/Modules/Sources/Timetable/TimetableListView.swift index 5ed0ac145..7116fcc96 100644 --- a/app-ios/Modules/Sources/Timetable/TimetableListView.swift +++ b/app-ios/Modules/Sources/Timetable/TimetableListView.swift @@ -2,18 +2,18 @@ import Model import SwiftUI struct TimetableListView: View { - let timeGroupTimetableItems: [TimetableTimeGroupItems] + let timetableTimeGroupItems: [TimetableTimeGroupItems] var body: some View { VStack(spacing: 0) { - ForEach(timeGroupTimetableItems) { timetableTimeGroupItems in + ForEach(timetableTimeGroupItems) { timetableTimeGroupItem in HStack(alignment: .top, spacing: 16) { SessionTimeView( - startsAt: timetableTimeGroupItems.startsAt, - endsAt: timetableTimeGroupItems.endsAt + startsAt: timetableTimeGroupItem.startsAt, + endsAt: timetableTimeGroupItem.endsAt ) VStack(spacing: 0) { - ForEach(timetableTimeGroupItems.items, id: \.timetableItem.id.value) { timetableItemWithFavorite in + ForEach(timetableTimeGroupItem.items, id: \.timetableItem.id.value) { timetableItemWithFavorite in NavigationLink(value: timetableItemWithFavorite.timetableItem) { TimetableListItemView( timetableItemWithFavorite: timetableItemWithFavorite @@ -22,8 +22,7 @@ struct TimetableListView: View { } } } - .padding(.horizontal, 8) - .padding(.vertical, 8) + .padding(8) Divider() } } @@ -36,7 +35,7 @@ import shared #Preview { TimetableListView( - timeGroupTimetableItems: [ + timetableTimeGroupItems: [ TimetableTimeGroupItems( duration: .init( startsAt: Timetable.companion.fake().contents.first!.timetableItem.startsAt, diff --git a/app-ios/Modules/Sources/Timetable/TimetableView.swift b/app-ios/Modules/Sources/Timetable/TimetableView.swift index 20b8ff612..ab1516edc 100644 --- a/app-ios/Modules/Sources/Timetable/TimetableView.swift +++ b/app-ios/Modules/Sources/Timetable/TimetableView.swift @@ -45,7 +45,7 @@ public struct TimetableView: View { viewModel.selectDay(day: $0) } ) { - TimetableListView(timeGroupTimetableItems: state) + TimetableListView(timetableTimeGroupItems: state) } } .background(AssetColors.Surface.surface.swiftUIColor)