Skip to content

Commit

Permalink
Add missing @ViewBuilder attribute to dayOfWeekHeaders (#304)
Browse files Browse the repository at this point in the history
Using this method with SwiftUI is kind of broken without a @ViewBuilder attribute.
  • Loading branch information
tadija authored May 10, 2024
1 parent 6d6d11a commit bc58dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Public/CalendarViewRepresentable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ extension CalendarViewRepresentable {
/// - weekdayIndex: The weekday index for which to provide a day-of-week header view.
/// - Returns: A new `CalendarViewRepresentable` with custom day-of-week header views configured.
public func dayOfWeekHeaders(
_ content: @escaping (_ month: MonthComponents?, _ weekdayIndex: Int) -> some View)
@ViewBuilder _ content: @escaping (_ month: MonthComponents?, _ weekdayIndex: Int) -> some View)
-> Self
{
dayOfWeekItemProvider { month, weekdayIndex in
Expand Down

0 comments on commit bc58dcb

Please sign in to comment.