-
Notifications
You must be signed in to change notification settings - Fork 0
/
Medication.swift
41 lines (37 loc) · 1.03 KB
/
Medication.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
//
// Medication.swift
// Eule
//
// Created by Hariom Palkar on 14/09/20.
// Copyright © 2020 Hariom Palkar. All rights reserved.
//
import SwiftUI
struct Medication: View {
@State var addGoalsScreen = false
@State private var Tapped = false
var goals: [Goals] = goalsList
var body: some View {
VStack(alignment: .leading){
HStack{
Text("Medication")
.font(.EuleTitle)
.foregroundColor(.gray)
Spacer()
}
ScrollView(.horizontal, showsIndicators: false){
HStack( spacing: 8){
// make a list of cards and fetch
ForEach(goals) { item in
GoalsCard(goals: item, allViews: false)
}
AddCard()
}
}
}
}
}
struct Medication_Previews: PreviewProvider {
static var previews: some View {
Medication()
}
}