Skip to content

Commit

Permalink
Fix the issue that timeLabel is not hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Jun 7, 2024
1 parent 8610035 commit c6e47cd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Sources/KVKCalendar/CurrentLineView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ extension CurrentLineView: CalendarSettingProtocol {

timeLabel.textColor = style.timeline.currentLineHourColor
timeLabel.font = style.timeline.currentLineHourFont


switch style.timeline.lineHourStyle {
case .withTime:
timeLabel.isHidden = false
case .onlyLine:
timeLabel.isHidden = true
}

timeLabel.frame = CGRect(x: 0, y: 0,
width: style.timeline.currentLineHourWidth,
height: frame.height)
Expand Down

0 comments on commit c6e47cd

Please sign in to comment.