apptekstudios / ASCollectionView

A SwiftUI collection view with support for custom layouts, preloading, and more.
MIT License
1.36k stars 160 forks source link

Crash on launch #163

Closed Phnx777 closed 4 years ago

Phnx777 commented 4 years ago

Crash on launch

lauch application on simulator se (1-st generation) iOS 13.0

Screenshot 2020-07-01 at 19 27 09 Screenshot 2020-07-01 at 19 26 53

Xcode Version: 11.5 (11E608c)

Simulator se (1-st generation) iOS 13.0 Did not test on real iPhone se 1-st generation

apptekstudios commented 4 years ago

Hi @Phnx777, thanks for reporting the issue. Unfortunately this one is a SwiftUI bug in 13.0 that was resolved in future iOS versions. The only workaround is to avoid using environment variables... if you're not using edit mode you could simply remove the @environment var editMode and related code.