Open rahuleastern opened 4 years ago
I want to add underline for tag test. But not working.
public init(title: String) { super.init(frame: CGRect.zero) setTitle(title, for: UIControl.State()) titleString.addAttribute(NSAttributedString.Key.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: NSMakeRange(0, title.count)) self.setAttributedTitle(titleString, for: .normal) setupView() }
I want to add underline for tag test. But not working.