From 0ce256b5c41997e63523cd303cac089b7ee63e3a Mon Sep 17 00:00:00 2001 From: Victor Peschenkov <3672477+vpeschenkov@users.noreply.github.com> Date: Mon, 20 May 2019 20:25:02 +0300 Subject: [PATCH] Make size equal (#5) --- PredatorCore/PredatorClock.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/PredatorCore/PredatorClock.swift b/PredatorCore/PredatorClock.swift index 8f43ab6..b766edc 100644 --- a/PredatorCore/PredatorClock.swift +++ b/PredatorCore/PredatorClock.swift @@ -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)