You can customize the appearance and behavior of MCalendarView by providing a trailing closure to the initializer. This closure uses a configBuilder to apply various configurations such as custom day views, setting the first weekday of the week, and defining custom weekdays views.
struct ContentView: View {
@State private var selectedDate: Date? = nil
@State private var selectedRange: MDateRange? = .init()
var body: some View {
MCalendarView(selectedDate: nil, selectedRange: $selectedRange) {
$0
(...)
.dayView(NewDayView.init)
.firstWeekday(.wednesday)
.monthLabelToDaysDistance(12)
.weekdaysView(NewWeekdaysView.init)
(...)
}
}
}