Skip to content

Commit

Permalink
Fix crash when displaying content with link
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Speijer authored and robinspeijer committed Jan 13, 2020
1 parent fdc50ce commit 8b85537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Beam/Extensions/TTTAttributedLabel+Links.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import TTTAttributedLabel
extension TTTAttributedLabel {

class fileprivate func baseBeamLinkAttributes() -> [NSAttributedString.Key: Any] {
return [NSAttributedString.Key.underlineStyle: []]
let underlineStyle: NSUnderlineStyle = []
return [.underlineStyle: NSNumber(value: underlineStyle.rawValue)]
}

class func beamLinkAttributesForMode(_ mode: DisplayMode) -> [NSAttributedString.Key: Any] {
Expand Down

0 comments on commit 8b85537

Please sign in to comment.