diff --git a/AKImageCropperView/AKImageCropperView.swift b/AKImageCropperView/AKImageCropperView.swift index 879bd86..f88565c 100644 --- a/AKImageCropperView/AKImageCropperView.swift +++ b/AKImageCropperView/AKImageCropperView.swift @@ -80,7 +80,7 @@ open class AKImageCropperView: UIView, UIScrollViewDelegate, UIGestureRecognizer /** Reversed frame + edgeInsets direct to current rotation angle */ var reversedFrameWithInsets: CGRect { - return UIEdgeInsetsInsetRect(reversedRect, reversedEdgeInsets) + return reversedRect.inset(by: reversedEdgeInsets) } // MARK: -