let attrs1 = [NSAttributedStringKey.font : UIFont.systemFont(ofSize: 15), NSAttributedStringKey.foregroundColor : UIColor.white,]

let attrs2 = [NSAttributedStringKey.font : UIFont.boldSystemFont(ofSize: 12), NSAttributedStringKey.foregroundColor : UIColor.white]

let attributedString1 = NSMutableAttributedString(string:"\(currName) \(price)\n", attributes:attrs1)

let attributedString2 = NSMutableAttributedString(string:"\(totalRoom) rooms selected", attributes:attrs2)

attributedString1.append(attributedString2)

lblTotal.attributedText = attributedString1

 

 

 

Advertisements