closed #60
This commit is contained in:
Trey t
2022-02-04 16:49:56 -06:00
parent b3785fac2c
commit a1f70edec2
10 changed files with 150 additions and 29 deletions

View File

@@ -12,6 +12,7 @@ import CoreData
struct AddMoodHeaderView: View {
private let savedOnboardingData = UserDefaultsStore.getOnboarding()
@AppStorage(UserDefaultsStore.Keys.theme.rawValue, store: GroupUserDefaults.groupDefaults) private var theme: Theme = .system
let addItemHeaderClosure: ((Mood, Date) -> Void)
@@ -19,7 +20,7 @@ struct AddMoodHeaderView: View {
var body: some View {
ZStack {
Color(UIColor.systemBackground)
Color(theme.secondaryBGColor)
VStack {
Text(self.getTitle())
@@ -45,6 +46,9 @@ struct AddMoodHeaderView: View {
}
.padding([.leading, .trailing, .bottom])
}
.background(
Color(theme.secondaryBGColor)
)
.clipShape(RoundedRectangle(cornerRadius: 25, style: .continuous))
.frame(minHeight: 88, maxHeight: 150)
.frame(minWidth: 0, maxWidth: .infinity)