capacitor-community / capacitor-community/date-picker

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Open
#83 5 comments 2 reactions 0 assignees View on GitHub
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`

Screenshot 2023-09-10 at 12 34 37 AM

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.