zjfjack / JZCalendarWeekView

Calendar Week & Day View in iOS Swift
MIT License
448 stars 120 forks source link

Fixes async crash using unowned on baseWeekView #157

Closed dessmith closed 1 month ago

dessmith commented 1 month ago

Stop using unowned self, causes crashes when baseWeekView is not == nil when deallocating.

The developer of this framework was using [unowned self] instead of [weak self] in closures. This can cause apps / the framework to crash if they use the view in an incorrect manner.