File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ private class RingLayer: CAShapeLayer {
111
111
112
112
// Transform the ring path to draw clockwise, starting at the top.
113
113
let translationToOrigin = CGAffineTransform ( translationX: - ringRect. midX, y: - ringRect. midY)
114
- let rotation = CGAffineTransform ( rotationAngle: - . pi / 2 )
114
+ // Note: The rotation angle is more precisely expressed as `-.pi / 2`, but that causes a bug on 32-bit devices.
115
+ // See https://github.com/mattrubin/Authenticator/issues/235 for more details.
116
+ let rotation = CGAffineTransform ( rotationAngle: - 1.5708 )
115
117
let translationFromOrigin = CGAffineTransform ( translationX: ringRect. midX, y: ringRect. midY)
116
118
var transform = translationToOrigin. concatenating ( rotation) . concatenating ( translationFromOrigin)
117
119
withUnsafePointer ( to: & transform) { transform in
You can’t perform that action at this time.
0 commit comments