From 49415a3d5cd5f38c052d5b270488f9558f6241d0 Mon Sep 17 00:00:00 2001 From: Eskil Gjerde Sviggum Date: Thu, 8 Aug 2024 18:59:39 +0200 Subject: [PATCH] =?UTF-8?q?More=20renaming=20=E2=80=9Ccycle=20between=20di?= =?UTF-8?q?visions=E2=80=9D=20to=20=E2=80=9Ccycle=20sizes=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rectangle/CycleSize.swift | 12 ++++++------ Rectangle/PrefsWindow/SettingsViewController.swift | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Rectangle/CycleSize.swift b/Rectangle/CycleSize.swift index ee4e065c..9a912e81 100644 --- a/Rectangle/CycleSize.swift +++ b/Rectangle/CycleSize.swift @@ -33,16 +33,16 @@ enum CycleSize: Int, CaseIterable { // For example if all cycles are used, the order should be: // 1/2, 2/3, 3/4, 1/4, 1/3 static var sortedSizes: [CycleSize] = { - let sortedDivisions = Self.allCases.sorted(by: { $0.fraction < $1.fraction }) + let sortedSizes = Self.allCases.sorted(by: { $0.fraction < $1.fraction }) - guard let firstDivisionIndex = sortedDivisions.firstIndex(of: firstSize) else { - return sortedDivisions + guard let firstSizeIndex = sortedSizes.firstIndex(of: firstSize) else { + return sortedSizes } - let lessThanFistDivision = sortedDivisions[0..