Skip to content

Commit

Permalink
Make size equal (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpeschenkov authored May 20, 2019
1 parent c079ef3 commit 0ce256b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions PredatorCore/PredatorClock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,7 @@ final public class PredatorClock {
hours = hours == 0 ? 12 : hours
}

// Width
var width = CGFloat(0)
if preferences.isTwentyFourClockFormat {
width = min(rect.size.width, rect.size.height) * 0.25
} else {
width = min(rect.size.width, rect.size.height) * 0.23
}

let width = min(rect.size.width, rect.size.height) * 0.25
let height = width * 1.5
let center = CGPoint(x: rect.width / 2.0, y: rect.height / 2.0)
let nummberSize = CGSize(width: width, height: height)
Expand Down

0 comments on commit 0ce256b

Please sign in to comment.