Skip to content

Commit

Permalink
removed isHighlighted variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kevalvadoliya authored and elsesiy committed Aug 27, 2020
1 parent e92ca0c commit aa2b366
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions CVCalendar/CVCalendarDayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public final class CVCalendarDayView: UIView {
public var topMarker: CALayer?
public var dotMarkers = [CVAuxiliaryView?]()

public var isHighlighted = false

public var isOut = false
public var isCurrentDay = false
public var isDisabled: Bool { return !self.isUserInteractionEnabled }
Expand Down Expand Up @@ -472,10 +470,6 @@ extension CVCalendarDayView {
extension CVCalendarDayView {
public func setSelectedWithType(_ type: SelectionType) {

if isHighlighted {
return
}

let appearance = calendarView.appearance
var backgroundColor: UIColor!
var backgroundAlpha: CGFloat!
Expand Down Expand Up @@ -592,7 +586,6 @@ extension CVCalendarDayView {
selectionView?.removeFromSuperview()
selectionView = nil
}
isHighlighted = false
}
}
}
Expand Down

0 comments on commit aa2b366

Please sign in to comment.