Answers for "swift uilabel dynamic height based on text length"

0

swift uilabel dynamic height based on text length

let myLabel = UILabel()
// Set leading and trailing constraints, and either top/bottom constraint,
//   likely done within Storyboard
myLabel.numberOfLines = 0
myLabel.sizeToFit()
Posted by: Guest on June-29-2021

Code answers related to "swift uilabel dynamic height based on text length"

Code answers related to "Swift"

Browse Popular Code Answers by Language