Skip to content

Commit

Permalink
Update month header view date formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhnx committed Dec 10, 2021
1 parent 459c472 commit 3787881
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Clendar/Base/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ struct ContentView: View {
store.selectedDate = Date()
} label: {
VStack(alignment: .trailing) {
HStack {
Text(store.selectedDate.toMonthString.localizedCapitalized)
.modifier(BoldTextModifider(color: .appRed))
Text(store.selectedDate.toYearString)
.modifier(BoldTextModifider(color: .appRed))
}
Text(store.selectedDate.toMonthAndYearString.localizedCapitalized)
.modifier(BoldTextModifider(color: .appRed))
Text(store.selectedDate.toDayAndDateString.localizedUppercase)
.modifier(BoldTextModifider())
}
Expand Down

0 comments on commit 3787881

Please sign in to comment.