How can I prohibit user actions when displaying toast ?
LeoAiolia opened this issue · 2 comments
LeoAiolia commented
How can I prohibit user actions when displaying toast ?
fanpengju commented
mark mark waitting for a solution
scalessec commented
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
}