Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Truncating text in UIAlertController

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)

Screenshots

like image 692
Rodrigo Marçal Avatar asked Jan 28 '23 18:01

Rodrigo Marçal


1 Answers

I found the problem! I was using a UILabel extension to include padding in text. When I removed this, the UIAlertController works ok.

like image 110
Rodrigo Marçal Avatar answered Jan 31 '23 23:01

Rodrigo Marçal