Skip to content

Commit

Permalink
Merge pull request #310 from mohtasimabrar/master
Browse files Browse the repository at this point in the history
  • Loading branch information
kvyatkovskys authored Mar 15, 2023
2 parents b10b6b3 + bbf1157 commit a24b261
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Sources/KVKCalendar/ScrollableWeekView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,17 @@ extension ScrollableWeekView: CalendarSettingProtocol {

mainFrame.origin.x = cornerBtn.frame.width
mainFrame.size.width -= cornerBtn.frame.width
} else {
if type == .week {
let spacerView = UIView()
spacerView.frame = CGRect(x: 0, y: 0,
width: leftOffsetWithAdditionalTime,
height: bounds.height)
spacerView.backgroundColor = .clear
addSubview(spacerView)
mainFrame.origin.x = spacerView.frame.width
mainFrame.size.width -= spacerView.frame.width
}
}

if Platform.currentInterface != .phone {
Expand Down

0 comments on commit a24b261

Please sign in to comment.