Skip to content

Commit fe6d298

Browse files
committed
✨[feat]: 출석 현황 관련해서 구현 #38
* 출석 현황 상태 카드 추가
1 parent bc07a2f commit fe6d298

File tree

13 files changed

+242
-5
lines changed

13 files changed

+242
-5
lines changed

Attendance/Projects/Core/Networking/Model/Sources/Event/AttendanceType.swift

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,37 @@ public enum AttendanceType: String, Codable {
3535
return "NONE"
3636
}
3737
}
38+
39+
public var koreanDesc: String {
40+
switch self {
41+
case .present:
42+
return "출석"
43+
case .absent:
44+
return "결석"
45+
case .late:
46+
return "지각"
47+
case .run:
48+
return "탈주"
49+
50+
default:
51+
return ""
52+
53+
}
54+
}
55+
56+
public var imageDesc: String {
57+
switch self {
58+
case .present:
59+
return "Present_icons"
60+
case .absent:
61+
return "Abesent_icons"
62+
case .late:
63+
return "Late_icons"
64+
65+
default:
66+
return "Present_icons"
67+
68+
}
69+
}
3870
}
3971

Attendance/Projects/Core/Networking/Model/Sources/SignUp/MemberType/SelectPart.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ public enum SelectPart: String, CaseIterable, Codable, Equatable {
3737

3838
public var attendanceListDesc: String {
3939
switch self {
40-
case .all:
41-
return "전체"
4240
case .pm:
43-
return "PM"
41+
return "Product Manager"
4442
case .design:
4543
return "Designer"
4644
case .android:
4745
return "Android"
4846
case .iOS:
4947
return "iOS"
5048
case .web:
51-
return "FE"
49+
return "Frontend"
5250
case .server:
53-
return "BE"
51+
return "Backend"
52+
default:
53+
return ""
5454
}
5555
}
5656

Attendance/Projects/Core/Networking/Model/Sources/SignUp/MemberType/SelectTeam.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,24 @@ public enum SelectTeam: String, CaseIterable, Codable {
126126
public var isDescEqualToAttendanceListDesc: Bool {
127127
return desc == attendanceListDesc
128128
}
129+
130+
public var attandanceCardDesc: String {
131+
switch self {
132+
case .web1:
133+
return "Web1팀"
134+
case .web2:
135+
return "Web2팀"
136+
case .and1:
137+
return "Android1팀"
138+
case .and2:
139+
return "Android2팀"
140+
case .ios1:
141+
return "iOS1팀"
142+
case .ios2:
143+
return "iOS2팀"
144+
default:
145+
return ""
146+
} }
147+
148+
129149
}

Attendance/Projects/Presentation/Presentation/Sources/CoreMember/AttandanceCheck/View/AttandanceCheckView.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ struct AttandanceCheckView: View {
2020

2121
selectPartType()
2222

23+
24+
AttendanceCheckStatusCard(attandanceType: .present, selectPart: .design, selectTeam: store.selectPart ?? .ios1, name: "김디디")
25+
.padding(.horizontal, 24)
2326
}
2427
}
2528
}
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Abesent_icons.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Late_icons.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
Lines changed: 5 additions & 0 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Present_icons.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

0 commit comments

Comments
 (0)