-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormatss.swift
57 lines (48 loc) · 1.45 KB
/
Formatss.swift
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
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Formatss.swift
// CurriculumVitae
//
// Created by apprenant50 on 05/06/2022.
//
import SwiftUI
struct Formatss: View {
var body: some View {
ScrollView(.horizontal, showsIndicators: false) {
HStack(spacing: 50){
ForEach(formatn) { item in
VStack {
Text(item.nomForm)
.fontWeight(.bold)
.font(.title)
.foregroundColor(.accentColor)
.frame(width: 250)
.multilineTextAlignment(.center)
Image(item.logopro)
.resizable()
.scaledToFit()
.frame(width: 250)
.cornerRadius(10)
.shadow(radius: 10)
.padding()
Text("\(item.lieu2) à \(item.cityP.rawValue)")
.font(.system(size: 20))
.italic()
Text("en \(item.year)")
.fontWeight(.thin)
.padding(.bottom,15)
Text(item.descri)
.frame(width: 310)
.multilineTextAlignment(.center)
Spacer()
}
}
}
.padding(.horizontal, 50)
}
}
}
struct Formatss_Previews: PreviewProvider {
static var previews: some View {
Formatss()
}
}