Skip to content

Commit

Permalink
WIP (Horizontal grids working but unable to find a good solution for …
Browse files Browse the repository at this point in the history
…vertical grid lines yet.
  • Loading branch information
charles-b-stb committed Aug 17, 2024
1 parent 980e3ec commit 7324704
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app-ios/Sources/TimetableFeature/TimetableListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct TimetableGridView: View {
let rooms = RoomType.allCases.filter {$0 != RoomType.roomIj}

ScrollView([.horizontal, .vertical]) {
Grid(alignment: .leading, horizontalSpacing: 1, verticalSpacing: 1) {
Grid(alignment: .leading, horizontalSpacing: 2, verticalSpacing: 1) {
GridRow {
Color.clear
.gridCellUnsizedAxes([.horizontal, .vertical])
Expand All @@ -125,6 +125,7 @@ struct TimetableGridView: View {
let room = column.toRoom()
Text(room.name.currentLangTitle).foregroundStyle(room.roomTheme.primaryColor)
.frame(width: 192)

}
}
DashedDivider(axis: .horizontal)
Expand All @@ -136,14 +137,14 @@ struct TimetableGridView: View {

}.frame(height: 153)

DashedDivider(axis: .vertical).frame(width: 1, height: 153)
// DashedDivider(axis: .vertical).frame(width: 1, height: 153)

ForEach(rooms, id: \.self) { room in
timeBlock.getCellForRoom(room: room, onTap: { item in
store.send(.view(.timetableItemTapped(item)))
})
//Divider().gridCellUnsizedAxes(.vertical)
DashedDivider(axis: .vertical).frame(width: 1)
// DashedDivider(axis: .vertical).frame(width: 1)
//
// Divider()
}
Expand Down

0 comments on commit 7324704

Please sign in to comment.