From 7dcba77cf0e297e791edc8ad3267f3dd722993da Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 9 Aug 2022 21:09:49 +0200 Subject: [PATCH] Fix typo --- iOS/OrientationTracker.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iOS/OrientationTracker.swift b/iOS/OrientationTracker.swift index 15c2cdaf..0fc718da 100644 --- a/iOS/OrientationTracker.swift +++ b/iOS/OrientationTracker.swift @@ -76,14 +76,14 @@ public class OrientationTracker { } private func deviceOrientation(forAccelerometerData accelerometerData: CMAccelerometerData) -> UIDeviceOrientation { - let treshold = 0.55 - if accelerometerData.acceleration.x >= treshold { + let threshold = 0.55 + if accelerometerData.acceleration.x >= threshold { return .landscapeLeft - } else if accelerometerData.acceleration.x <= -treshold { + } else if accelerometerData.acceleration.x <= -threshold { return .landscapeRight - } else if accelerometerData.acceleration.y <= -treshold { + } else if accelerometerData.acceleration.y <= -threshold { return .portrait - } else if accelerometerData.acceleration.y >= treshold { + } else if accelerometerData.acceleration.y >= threshold { return .portraitUpsideDown } else { return currentDeviceOrientation