top view will shrink and fade into another view

This commit is contained in:
Trey t
2022-01-28 15:18:00 -06:00
parent 3ece2c27a1
commit cffce6a773
6 changed files with 186 additions and 54 deletions

View File

@@ -12,7 +12,7 @@ import CoreData
struct AddMoodHeaderView: View {
private let savedOnboardingData = UserDefaultsStore.getOnboarding()
let addItemHeaderClosure: ((Mood, Date) -> Void)
var overrideDay: DayOptions?
@@ -34,7 +34,7 @@ struct AddMoodHeaderView: View {
}, label: {
mood.icon
.resizable()
.frame(width: 50, height: 50, alignment: .center)
.frame(width: CGFloat(50), height: CGFloat(50), alignment: .center)
.foregroundColor(mood.color)
})
@@ -42,13 +42,12 @@ struct AddMoodHeaderView: View {
}.frame(minWidth: 0, maxWidth: .infinity)
}
}
.padding([.leading, .trailing, .bottom])
}
.padding([.leading, .trailing, .bottom])
}
.clipShape(RoundedRectangle(cornerRadius: 25, style: .continuous))
.frame(minHeight: 85, maxHeight: 140)
.frame(minHeight: 88, maxHeight: 150)
.frame(minWidth: 0, maxWidth: .infinity)
.padding()
}
private func getTitle() -> String {