@@ -300,12 +300,12 @@ final class CropView: UIView {
300
300
rotationControlView. frame. origin. x = cropAuxiliaryIndicatorView. frame. origin. x +
301
301
( cropAuxiliaryIndicatorView. frame. width - rotationControlView. frame. width) / 2
302
302
rotationControlView. frame. origin. y = cropAuxiliaryIndicatorView. frame. maxY
303
- } else if Orientation . isLandscapeLeft {
303
+ } else if Orientation . isLandscapeRight {
304
304
rotationControlView. transform = CGAffineTransform ( rotationAngle: - CGFloat. pi / 2 )
305
305
rotationControlView. frame. origin. x = cropAuxiliaryIndicatorView. frame. maxX
306
306
rotationControlView. frame. origin. y = cropAuxiliaryIndicatorView. frame. origin. y +
307
307
( cropAuxiliaryIndicatorView. frame. height - rotationControlView. frame. height) / 2
308
- } else if Orientation . isLandscapeRight {
308
+ } else if Orientation . isLandscapeLeft {
309
309
rotationControlView. transform = CGAffineTransform ( rotationAngle: CGFloat . pi / 2 )
310
310
rotationControlView. frame. origin. x = cropAuxiliaryIndicatorView. frame. minX - rotationControlView. frame. width
311
311
rotationControlView. frame. origin. y = cropAuxiliaryIndicatorView. frame. origin. y +
@@ -483,7 +483,7 @@ extension CropView {
483
483
contentRect. size. height = rect. height - 2 * cropViewPadding
484
484
485
485
contentRect. origin. y = rect. origin. y + cropViewPadding
486
- if Orientation . isLandscapeLeft {
486
+ if Orientation . isLandscapeRight {
487
487
contentRect. origin. x = rect. origin. x + cropViewPadding
488
488
} else {
489
489
contentRect. origin. x = rect. origin. x + cropViewPadding + rotationControlViewHeight
0 commit comments