Skip to content

Commit 311354a

Browse files
author
Admin
committed
Makes selectedDay in BasicCalendarViewConfigurator readonly
1 parent 6d701d0 commit 311354a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/YourCalendar/Implementation/BasicCalendarConfigurator.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ import UIKit
88
public final class BasicCalendarViewConfigurator: CalendarViewConfiguratorProtocol {
99
public typealias Predicate = (Date) -> Bool
1010
public typealias Model = CalendarViewDayCell.Model
11-
11+
12+
/// Selected day model
13+
private(set) var selectedDay: Date?
14+
1215
private var formatter = DateFormatter().with {
1316
$0.dateFormat = "d"
1417
}
@@ -25,8 +28,6 @@ public final class BasicCalendarViewConfigurator: CalendarViewConfiguratorProtoc
2528
(Constants.calendar.shortWeekdaySymbols[safe: $0 % Constants.weekdaysCount] ?? "").uppercased()
2629
}
2730

28-
private var selectedDay: Date?
29-
3031
/// Designated initialiser
3132
/// - Parameter enumerator: Calendar page dates enumerator
3233
public init(enumerator: CalendarViewDateEnumeratorProtocol) {

0 commit comments

Comments
 (0)