Answers for "swift change height of text in uilabel"

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 change height of text in uilabel"

Code answers related to "Swift"

Browse Popular Code Answers by Language