I don't know why the text is getting truncated in the UIAlertController
.
I don't know what I could have done.
Have I changed any settings unintentionally in Xcode
?
let title = "Erro ao verificar usuário no servidor"
let message = "Não foi possível atualizar os dados. Tente novamente mais tarde"
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
let ok = UIAlertAction(title: "Ok", style: .default, handler: nil)
alert.addAction(ok)
present(alert, animated: true, completion: nil)
I found the problem! I was using a UILabel extension to include padding in text. When I removed this, the UIAlertController works ok.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With