Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sources/Public/Configurables/Public+CalendarConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ public extension CalendarConfig {
// MARK: - Custom Views
public extension CalendarConfig {
/// Replaces the default weekdays view with a selected implementation.
func weekdaysView(_ builder: @escaping () -> some WeekdaysView) -> Self { changing(path: \.weekdaysView, to: builder) }
func weekdaysView(_ builder: @escaping () -> any WeekdaysView) -> Self { changing(path: \.weekdaysView, to: builder) }

/// Replaces the default month label with a selected implementation.
func monthLabel(_ builder: @escaping (Date) -> some MonthLabel) -> Self { changing(path: \.monthLabel, to: builder) }
func monthLabel(_ builder: @escaping (Date) -> any MonthLabel) -> Self { changing(path: \.monthLabel, to: builder) }

/// Replaces the default day view with a selected implementation.
func dayView(_ builder: @escaping (Date, Bool, Binding<Date?>?, Binding<MDateRange?>?) -> some DayView) -> Self { changing(path: \.dayView, to: builder) }
func dayView(_ builder: @escaping (Date, Bool, Binding<Date?>?, Binding<MDateRange?>?) -> any DayView) -> Self { changing(path: \.dayView, to: builder) }
}

// MARK: - Modifiers
Expand Down
Loading