Krelborn / KILabel

A simple to use drop in replacement for UILabel for iOS 7 and above that highlights links such as URLs, twitter style usernames and hashtags and makes them touchable.
MIT License
470 stars 133 forks source link

Wrong Content Height Issue for another language #81

Open nono911 opened 4 years ago

nono911 commented 4 years ago

let label1 = KILabel(frame:CGRect(x: 100, y: 400, width: 200, height: 50)) label1.text = "สวัสดี มีอะไรให้ช่วยไหมครับ" label1.backgroundColor = .red view.addSubview(label1) label1.sizeToFit()

let label2 = KILabel(frame:CGRect(x: 100, y: 450, width: 200, height: 50)) label2.text = "hello how are you asdf!!" label2.backgroundColor = .purple view.addSubview(label2) label2.sizeToFit()

Screen Shot 2562-08-09 at 16 54 14