capacitor-community / capacitor-community/date-picker
Fatal error: Unexpectedly found nil while unwrapping an Optional value
- Dominant language
- Swift
- Stars
- 94
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
**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`
Contributor guide
Research direction
Start by reproducing the DatePicker.present call with the shown options in Xcode, then inspect CapacitorCommunityDatePicker/Parse.swift:20 to identify the nil value causing the fatal error. Done means the date picker appears and the promise returns date data without crashing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100