-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMissionScrollView.swift
More file actions
44 lines (39 loc) · 1.73 KB
/
MainMissionScrollView.swift
File metadata and controls
44 lines (39 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Service
import SwiftUI
struct MainMissionScrollView: View {
let missionDataList: [MissionListEntity]
var body: some View {
VStack {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 16) {
ForEach(missionDataList.indices, id: \.self) { mission in
if let missionList = missionDataList[safe: mission] {
VStack(alignment: .center) {
Text(missionList.user.userName)
.skFont(.pm14)
.padding(.top, 16)
Text(missionList.missionTitle)
.skFont(.pr12)
.lineLimit(3)
.padding(.top, 16)
.padding(.horizontal, 16)
Spacer()
Text(missionList.missionPoint.description)
.skFont(.pm16)
.padding(.bottom, 24)
}
.padding(.init(top: 18, leading: 40, bottom: 18, trailing: 40))
.background(Color.white)
.cornerRadius(10)
}
}
}
}
.frame(height: 160)
.padding(.vertical, 16)
.padding(.horizontal, 16)
.background(Color.SKColorSystem.Gray.lightgray1.color)
.cornerRadius(20)
}
}
}