-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImageGallaryView.swift
50 lines (45 loc) · 1.27 KB
/
ImageGallaryView.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
//
// ImageGallaryView.swift
// GreenBuddy
//
// Created by O'Ryan Hampton on 10/14/20.
// Copyright © 2020 O'Ryan Hampton. All rights reserved.
//
import SwiftUI
struct ImageGallaryView: View {
var body: some View {
VStack{
HStack{
Spacer()
Image(systemName: "plus").onTapGesture(perform: {
})
.padding(30)
}
ScrollView{
VStack(alignment: .leading){
ForEach(0 ..< 4){ number in
HStack{
ForEach(0 ..< 3){ object in
Image("cacti")
.resizable()
.scaledToFit()
.frame(width: 100, height: 100)
}
}
}
}
.padding(.trailing, 12.0)
.padding(.top, 15)
.frame(width: 400.0)
}
}
}
// init(for plantGallary: Image){
// plantImage = plantGallary
// }
}
struct ImageGallaryView_Previews: PreviewProvider {
static var previews: some View {
ImageGallaryView()
}
}