Skip to content

Commit

Permalink
Merge pull request #52 from SaezChristopher/SaezChristopher-fix-crash…
Browse files Browse the repository at this point in the history
…-underline

Fix crash on underline
  • Loading branch information
Nicholas Maccharoli authored May 26, 2018
2 parents 1d588a7 + 5e483a7 commit 92598b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Attributed/Attributes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public struct Attributes {
}

public func underlineStyle(_ underlineStyle: NSUnderlineStyle) -> Attributes {
return self + Attributes(dictionary: [NSAttributedStringKey.underlineStyle: underlineStyle])
return self + Attributes(dictionary: [NSAttributedStringKey.underlineStyle: underlineStyle.rawValue])
}

public func strokeColor(_ strokeColor: UIColor) -> Attributes {
Expand Down

0 comments on commit 92598b3

Please sign in to comment.