scalessec/Toast-Swift

How can I prohibit user actions when displaying toast ?

LeoAiolia opened this issue · 2 comments

How can I prohibit user actions when displaying toast ?

mark mark waitting for a solution

self.view.isUserInteractionEnabled = false
self.view.makeToast("This is a piece of toast", duration: 2.0, point: CGPoint(x: 110.0, y: 110.0), title: "Toast Title", image: UIImage(named: "toast.png")) { [weak self] didTap in
    self?.view.isUserInteractionEnabled = true
}