Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
justingiffard-impact opened this issue Jun 21, 2024 · 2 comments

Comments

@justingiffard-impact
Copy link

justingiffard-impact commented Jun 21, 2024

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

@UriyDevyataev
Copy link
Contributor

Hello!
We tried to reproduce the error with your code but without success.
Could you give me a git for your project?

@SuperY
Copy link

SuperY commented Dec 10, 2024

Try to add "OTHER_LDFLAGS": "-ObjC"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants