hauteur dynamique uilabel rapide basée sur la longueur du texte

let myLabel = UILabel()
// Set leading and trailing constraints, and either top/bottom constraint,
//   likely done within Storyboard
myLabel.numberOfLines = 0
myLabel.sizeToFit()
TheKrisinator