Skip to content

Commit

Permalink
Impl session message in list view
Browse files Browse the repository at this point in the history
  • Loading branch information
tk-hase committed Aug 16, 2024
1 parent 16d2480 commit 5bba881
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "info.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions app-ios/Sources/CommonComponents/Timetable/TimetableCard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@ public struct TimetableCard: View {
.lineLimit(1)
}
}
if let timetableItemSession = timetableItem as? TimetableItem.Session,
let sessionMessage = timetableItemSession.message?.currentLangTitle,
!sessionMessage.isEmpty {
HStack(spacing: 8) {
Image(.icInfoFill)
Text(sessionMessage)
.textStyle(.bodySmall)
.multilineTextAlignment(.leading)
.foregroundStyle(AssetColors.Error.error.swiftUIColor)
}
}
}
.frame(maxWidth: .infinity)
.padding(12)
Expand Down

0 comments on commit 5bba881

Please sign in to comment.