work on share view UI a bit

This commit is contained in:
Trey t
2022-02-17 18:37:04 -06:00
parent 107086b695
commit 43bbaa4546
4 changed files with 55 additions and 31 deletions

View File

@@ -114,7 +114,7 @@ struct LongestStreakTemplate: View, SharingTemplate {
.font(.title)
.foregroundColor(Color(UIColor.label))
.frame(maxWidth: .infinity, alignment: .center)
.padding(.top, 1)
.padding()
HStack {
Text(self.moodEntries.first?.forDate ?? Date(), formatter: itemFormatter)
@@ -135,6 +135,8 @@ struct LongestStreakTemplate: View, SharingTemplate {
.frame(maxWidth: .infinity, alignment: .center)
.padding(.top, 1)
}
.padding()
HStack {
VStack {
LazyVGrid(columns: columns, spacing: 0) {
@@ -157,6 +159,8 @@ struct LongestStreakTemplate: View, SharingTemplate {
var mainView: some View {
VStack {
shareView
.background(Color(UIColor.secondarySystemBackground))
.cornerRadius(10)
Spacer()
Menu(content: {
ForEach(Mood.allValues) { mood in