mirror of
				https://github.com/yattee/yattee.git
				synced 2025-10-30 12:11:59 +00:00 
			
		
		
		
	disable portraitUpsideDown on iPhones
This commit is contained in:
		| @@ -86,9 +86,11 @@ public class OrientationTracker { | ||||
|         if accelerometerData.acceleration.y <= -threshold { | ||||
|             return .portrait | ||||
|         } | ||||
|         if accelerometerData.acceleration.y >= threshold { | ||||
|  | ||||
|         if UIDevice.current.userInterfaceIdiom == .pad && accelerometerData.acceleration.y >= threshold { | ||||
|             return .portraitUpsideDown | ||||
|         } | ||||
|  | ||||
|         return currentDeviceOrientation | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Toni Förster
					Toni Förster