Skip to content

Commit 6a77107

Browse files
revolterhebertialmeida
authored andcommitted
Fix warnings about exceding UIColor range (FolioReader#176)
This was causing this warning to appear in the console: [Graphics] UIColor created with component values far outside the expected range. Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.
1 parent f0d223e commit 6a77107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/FolioReaderPageIndicator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class FolioReaderPageIndicator: UIView {
7676
animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseInEaseOut)
7777
layer.add(animation, forKey: "shadowColor")
7878

79-
minutesLabel.textColor = isNight(UIColor(white: 5, alpha: 0.3), UIColor(white: 0, alpha: 0.6))
80-
pagesLabel.textColor = isNight(UIColor(white: 5, alpha: 0.6), UIColor(white: 0, alpha: 0.9))
79+
minutesLabel.textColor = isNight(UIColor(white: 1, alpha: 0.3), UIColor(white: 0, alpha: 0.6))
80+
pagesLabel.textColor = isNight(UIColor(white: 1, alpha: 0.6), UIColor(white: 0, alpha: 0.9))
8181
}
8282

8383
fileprivate func reloadViewWithPage(_ page: Int) {

0 commit comments

Comments
 (0)