sparrowcode / AlertKit

Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets.
https://sparrowcode.io/frameworks
MIT License
2.39k stars 133 forks source link

SPAlert hiding or dismissing instantly in some views. Maybe due to a UITextView #11

Closed bebrws closed 4 years ago

bebrws commented 4 years ago

A workaround that help me was:

    self.perform(#selector(self.showSaveCompleted), with: nil, afterDelay: 1)

    @objc func showSaveCompleted() {
        DispatchQueue.main.async {

            let alertView = SPAlertView(title: "Title.", message: "Message.", preset: SPAlertPreset.done)
            alertView.duration = 3
            alertView.dismissByTap = true
            alertView.present()
        }
    }
ivanvorobei commented 4 years ago

Good day! You can create example project?