SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.24k stars 742 forks source link

Crash with SwiftMessages 8.0.0 on iOS13 #400

Closed fabdurso closed 4 years ago

fabdurso commented 4 years ago

Upgrading from 7.0.1 to 8.0.0 I experience the following crash:

Thread 1: EXC_BAD_ACCESS

on line

SwiftMessages.show(config: alertConfig, view: alertView) where

alertconfig:

    var alertConfig = SwiftMessages.Config()
    alertConfig.presentationStyle = .center
    alertConfig.duration = .forever
    alertConfig.interactiveHide = false

and alertView:

    var alertView = MessageView.viewFromNib(layout: .centeredView)
    alertView.button?.isHidden = true
    alertView.configureTheme(.info)
    alertView.configureDropShadow()
    alertView.layoutMarginAdditions = UIEdgeInsets(top: 20, left: 20, bottom: 20, right: 20)
wtmoose commented 4 years ago

Try cleaning your derived data and restarting Xcode.

fabdurso commented 4 years ago

thanks @wtmoose, cleaning the DerivedData fixed it.