File tree Expand file tree Collapse file tree 4 files changed +1218
-0
lines changed
Outspire.swiftpm/Features Expand file tree Collapse file tree 4 files changed +1218
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ struct NavSplitView: View {
3838 NavigationLink ( value: " school-arrangement " ) {
3939 Label ( " School Arrangement " , systemImage: " calendar.badge.clock " )
4040 }
41+ NavigationLink ( value: " lunch-menu " ) {
42+ Label ( " Lunch Menu " , systemImage: " fork.knife " )
43+ }
4144 NavigationLink ( value: " help " ) {
4245 Label ( " Help " , systemImage: " questionmark.circle.dashed " )
4346 }
@@ -74,6 +77,8 @@ struct NavSplitView: View {
7477 ClubActivitiesView ( )
7578 case . some( " school-arrangement " ) :
7679 SchoolArrangementView ( )
80+ case . some( " lunch-menu " ) :
81+ LunchMenuView ( )
7782 case . some( " help " ) :
7883 HelpView ( )
7984 default :
Original file line number Diff line number Diff line change 1+ import Foundation
2+
3+ struct LunchMenuItem : Identifiable , Equatable {
4+ let id : String
5+ let title : String
6+ let publishDate : String
7+ let url : String
8+ var isExpanded : Bool = false
9+
10+ static func == ( lhs: LunchMenuItem , rhs: LunchMenuItem ) -> Bool {
11+ return lhs. id == rhs. id
12+ }
13+ }
14+
15+ struct LunchMenuDetail : Identifiable , Equatable {
16+ let id : String
17+ let title : String
18+ let publishDate : String
19+ let imageUrls : [ String ]
20+ let content : String
21+
22+ static func == ( lhs: LunchMenuDetail , rhs: LunchMenuDetail ) -> Bool {
23+ return lhs. id == rhs. id
24+ }
25+ }
26+
27+ struct LunchMenuGroup : Identifiable {
28+ let id : String
29+ let title : String
30+ var items : [ LunchMenuItem ]
31+ var isExpanded : Bool = true
32+ }
You can’t perform that action at this time.
0 commit comments