Skip to content

Commit

Permalink
Merge pull request #390 from mohammadtakbiri/fix/tap-gesture-support-…
Browse files Browse the repository at this point in the history
…weekView

Bug fixes on tap gesture in WeekView mode.
  • Loading branch information
kvyatkovskys authored Nov 10, 2024
2 parents 1887359 + a55d9d4 commit 7254f3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/KVKCalendar/Timeline+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ extension TimelineView {
case .day:
newEvent.start = selectedDate
case .week:
newEvent.start = shadowView.date ?? Date()
let value = moveShadowView(pointX: point.x)
newEvent.start = shadowView.date ?? value?.date ?? Date()
default:
break
}
Expand Down

0 comments on commit 7254f3f

Please sign in to comment.