capacitor-community / date-picker

Native DateTime Picker Plugin for Capacitor Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fatal error: Unexpectedly found nil while unwrapping an Optional value

smhemel opened this issue · comments

Describe the bug
Date Picker is not showing up.
Getting Fatal error when I call atePicker.present() with valid options on Xcode.

My code:

DatePicker.present({
        mode: 'date',
        date: new Date().toISOString(),
        max: this.getMaxDate(from),
        theme: 'light',
      })
      .then((dateData) => {
         console.log(dateData);
      })

Error in Xcode:
CapacitorCommunityDatePicker/Parse.swift:20: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Screenshot 2023-09-10 at 12 34 37 AM

I'm getting this same issue, did you manage to find a solution @smhemel ? :)

No, I didn't get any solution regarding this. That's why I have used another package instead of this. @DanielDarrenJones