-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHobbies.swift
55 lines (47 loc) · 1.53 KB
/
Hobbies.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
//
// Hobbies.swift
// CurriculumVitae
//
// Created by apprenant50 on 04/06/2022.
//
import SwiftUI
struct Hobbies: View {
var body: some View {
ZStack{
Rectangle()
.fill(
LinearGradient(colors: [.accentColor, .white, .white, .white, .white, .accentColor], startPoint: .topLeading, endPoint: .bottomTrailing))
.ignoresSafeArea()
// HStack {
ScrollView(.horizontal, showsIndicators: false) {
HStack {
ForEach(mesPassions) { item in
VStack {
Image(item.imageHob)
.resizable()
.scaledToFill()
.frame(width: 350, height: 300)
.cornerRadius(30)
.shadow(radius: 10)
.padding()
Text(item.nomHobby)
.foregroundColor(.accentColor)
.font(.title)
.padding()
Text(item.desc)
.fontWeight(.thin)
.frame(width:330)
.multilineTextAlignment(.center)
}
}
}
.padding(.horizontal,10)
}
}
}
}
struct Hobbies_Previews: PreviewProvider {
static var previews: some View {
Hobbies()
}
}