Skip to content

-[JTAppleCalendar.JTACMonthView scrollViewDidEndScrollingAnimation:]: unrecognized selector sent to instance 0x10bc45000 #62

Description

@justingiffard-impact

Im getting weird behaviour that I cannot figure out... Fastis used to work perfectly and now I have noticed that its not working at all in any of my views, neither UIKit or SwiftUI

I have the following view made based on the SwiftUI section on the README

struct CalendarDatePickerSheetView: View {
    @Binding
    var date: Date?

    var body: some View {
        FastisView(mode: .single) {
            switch $0 {
            case let .done(selectedDate):
                guard let selectedDate = selectedDate else { return }
                date = selectedDate
            case .cancel:
                break
            }
        }
        .title(L10n.Creator.Common.chooseDate)
        .initialValue(date)
        .minimumDate(Date())
        .allowToChooseNilDate(false)
    }
}

then call it as follows

.sheet(isPresented: $vm.isEndDatePickerPresented) {
    CalendarDatePickerSheetView(date: $vm.endDate)
}

and when I press the button in simulator it loads the FastisView and then crashes a second or two later and in simulator it crashes the preview instantly
If I add an all exceptions breakpoint the crash happens in JTACMonthActionFunctions.swift:97 inside scrollToHeaderInSection and the error message is
-[JTAppleCalendar.JTACMonthView scrollViewDidEndScrollingAnimation:]: unrecognized selector sent to instance 0x10bc45000

I unfortunately have no idea why this would happen specifically on this screen and not the other so if you have any ideas what would be causing this it would be greatly appreciated

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions