Skip to content

Commit

Permalink
🐛 fix UIColor hex issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NuPlay committed Aug 9, 2022
1 parent 03c5911 commit 8940ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RichText/Extensions/UIColor+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ extension UIColor {

if alpha == 1.0 {
return String(
format: "#%02lX%02lX%02lX",
format: "%02lX%02lX%02lX",
Int(red * multiplier),
Int(green * multiplier),
Int(blue * multiplier)
)
} else {
return String(
format: "#%02lX%02lX%02lX%02lX",
format: "%02lX%02lX%02lX%02lX",
Int(red * multiplier),
Int(green * multiplier),
Int(blue * multiplier),
Expand Down

0 comments on commit 8940ef2

Please sign in to comment.