let stringAttributes: [NSAttributedStringKey : Any] = [ .foregroundColor : UIColor.blue, .font : UIFont.systemFont(ofSize: 24.0) ] let string = NSAttributedString(string: "BlueString", attributes:stringAttributes) label.attributedText = string このようになります。 この程度ならUILabel#font、textColorプロパティを使えば同等のことができるので、NSAttributedStringを使うまでもないでしょう。 NSMutableAttributedString 実際にNSAttributedStringを使う時は、文字の一部の色やフォン