diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9d627..beddc94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed an issue that could cause the calendar to layout unnecessarily due to a trait collection change notification - Fixed an issue that could cause off-screen items to appear or disappear instantly, rather than animating in or out during animated content changes - Fixed an issue that caused a SwiftUI view being used as a calendar item to not receive calls to `onAppear` +- Fixed an accessibility issue that prevented scrolling callbacks from firing when scrolling via voiceover. ### Changed - Removed all deprecated code, simplifying the public API in preparation for a 2.0 release diff --git a/Sources/Public/CalendarView.swift b/Sources/Public/CalendarView.swift index 635bb7d..cc9b397 100644 --- a/Sources/Public/CalendarView.swift +++ b/Sources/Public/CalendarView.swift @@ -1259,6 +1259,13 @@ extension CalendarView { let accessibilityScrollText = targetMonthView.accessibilityLabel UIAccessibility.post(notification: .pageScrolled, argument: accessibilityScrollText) + // ensure that scrolling related callbacks are still fired when performing scrolling via accessibility + if let visibleDayRange { + didScroll?(visibleDayRange, false) + didEndDragging?(visibleDayRange, true) + didEndDecelerating?(visibleDayRange) + } + return true }