Skip to content

Commit

Permalink
updated screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kvyatkovskys committed Dec 26, 2022
1 parent 8265794 commit 17664fe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Binary file modified Screenshots/iphone_day.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Sources/KVKCalendar/CalendarModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public protocol CalendarDataSource: AnyObject {

func dequeueTimeLabel(_ label: TimelineLabel) -> (current: TimelineLabel, others: [UILabel])?

func dequeueCornerHeader(date: Date, frame: CGRect) -> UIView?
func dequeueCornerHeader(date: Date, frame: CGRect, type: CalendarType) -> UIView?

func dequeueAllDayCornerHeader(date: Date, frame: CGRect) -> UIView?
}
Expand Down Expand Up @@ -507,7 +507,7 @@ public extension CalendarDataSource {

func dequeueTimeLabel(_ label: TimelineLabel) -> (current: TimelineLabel, others: [UILabel])? { nil }

func dequeueCornerHeader(date: Date, frame: CGRect) -> UIView? { nil }
func dequeueCornerHeader(date: Date, frame: CGRect, type: CalendarType) -> UIView? { nil }

func dequeueAllDayCornerHeader(date: Date, frame: CGRect) -> UIView? { nil }

Expand Down
4 changes: 2 additions & 2 deletions Sources/KVKCalendar/KVKCalendarView+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ extension KVKCalendarView: DisplayDataSource {
dataSource?.dequeueAllDayCornerHeader(date: date, frame: frame)
}

public func dequeueCornerHeader(date: Date, frame: CGRect) -> UIView? {
dataSource?.dequeueCornerHeader(date: date, frame: frame)
public func dequeueCornerHeader(date: Date, frame: CGRect, type: CalendarType) -> UIView? {
dataSource?.dequeueCornerHeader(date: date, frame: frame, type: type)
}

}
Expand Down
3 changes: 2 additions & 1 deletion Sources/KVKCalendar/ScrollableWeekView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ extension ScrollableWeekView: CalendarSettingProtocol {
if let cornerHeader = dataSource?.dequeueCornerHeader(date: date,
frame: CGRect(x: 0, y: 0,
width: leftOffsetWithAdditionalTime,
height: bounds.height)) {
height: bounds.height),
type: type) {
addSubview(cornerHeader)
mainFrame.origin.x = cornerHeader.frame.width
mainFrame.size.width -= cornerHeader.frame.width
Expand Down

0 comments on commit 17664fe

Please sign in to comment.