ラベルの下線の色を変更するにはどうすればよいですか?私は、テキスト全体ではなく、色を変更するだけの下線を必要とします。Swiftの下線のみの色
私は下線を取得するには、このコードを使用しています
let underlineAttribute = [NSAttributedStringKey.underlineStyle: NSUnderlineStyle.styleSingle.rawValue]
let underlineAttributedString = NSAttributedString(string: "\(nearSavings[indexPath.row]) ,-", attributes: underlineAttribute)
cell.detailTextLabel?.attributedText = underlineAttributedString
しかし、私は、下線の色を設定するには、コードを見つける傾けます。助けることができる人は誰ですか?