NSAttributedStringとは NSAttributedString とは、 UILabel やUITextField のテキスト(文字列)を装飾するためのクラスです。 フォントの種類やサイズはもちろん、行間や縁取りなど、いろいろな要素を指定できます。 NSAttributedStringの使いかた NSAttributedStringでテキストを装飾する場合は、 NSAttributedStringクラス のinit処理 init(string:attributes:) をつかいます。 アップル公式リファレンスによると、 Returns an NSAttributedString object initialized with a given string and attributes. とのことなので、テキスト(String)と属性(attributes)をわたすことで、NS