Added some more normal calendar places, played with the day and calendar view
This commit is contained in:
@@ -16,19 +16,27 @@ struct DayView: View {
|
||||
var date: Int
|
||||
var color: Color
|
||||
var body: some View {
|
||||
ZStack {
|
||||
Color.init(color)
|
||||
.cornerRadius(10)
|
||||
.scaledToFit()
|
||||
.frame(maxWidth: .infinity)
|
||||
Image(systemName: image)
|
||||
.font(.caption)
|
||||
.frame(maxWidth: .infinity, alignment: .trailing)
|
||||
.padding(.trailing, 6)
|
||||
.padding(.top, 30)
|
||||
Text("\(date).")
|
||||
.font(.headline)
|
||||
GeometryReader { geometry in
|
||||
ZStack {
|
||||
Color.init(color)
|
||||
// .cornerRadius(10)
|
||||
.frame(maxWidth: .infinity)
|
||||
|
||||
Text("\(date).")
|
||||
.font(.headline)
|
||||
VStack {
|
||||
Spacer()
|
||||
HStack(alignment: .bottom) {
|
||||
Spacer()
|
||||
Image(systemName: image)
|
||||
// .padding([.bottom, .trailing])
|
||||
.font(.caption)
|
||||
.frame(maxWidth: .infinity, alignment: .trailing)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.aspectRatio(1.0, contentMode: .fit)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user