Closed swift-ci closed 9 months ago
@swift-ci create
Comment by Tassio Moreira Marques (JIRA)
Note: For reference, setting the calendar prevents the bug from happening:
someDatePicker.calendar = Calendar(identifier: .gregorian)
This sounds very much like an issue with UIKit (not the compiler or Standard Library). @tassiomm Assuming you are the author, please use the feedback assistant for these sorts of SDK bugs.
Environment
**XCode Version:** 11.3.1 **Device:** iPhone 6s Plus **Device iOS Version:** 13.6 Xcode Project: **Swift 5** **Target:** iOS 13.2Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Standard Library | |Labels | Bug | |Assignee | None | |Priority | Medium | md5: a3245dac2c3ee77de8e819d6cd8bd781Issue Description:
UIDatePicker
will crash if user switches 24-hour time multiple times and opening the app between switches.Reproducible test case:
Create a new Single View App Project in Swift. Go to ViewController that XCode already created and paste the code:
Steps: