Skip to content

Commit 168cf14

Browse files
authored
Patch 1.1.1
feat: - Added an ability to return different view types for UI builders
1 parent c2c0ecc commit 168cf14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/Public/Configurables/Public+CalendarConfig.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ public extension CalendarConfig {
6060
// MARK: - Custom Views
6161
public extension CalendarConfig {
6262
/// Replaces the default weekdays view with a selected implementation.
63-
func weekdaysView(_ builder: @escaping () -> some WeekdaysView) -> Self { changing(path: \.weekdaysView, to: builder) }
63+
func weekdaysView(_ builder: @escaping () -> any WeekdaysView) -> Self { changing(path: \.weekdaysView, to: builder) }
6464

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

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

7272
// MARK: - Modifiers

0 commit comments

Comments
 (0)