Fix crash on iOS 15

This commit is contained in:
Maurice Parker 2021-07-16 14:28:56 -05:00
parent 6f6e547a5b
commit cc19b6b13e

View File

@ -10,6 +10,10 @@ import UIKit
class CroppingPreviewParameters: UIPreviewParameters { class CroppingPreviewParameters: UIPreviewParameters {
override init() {
super.init()
}
init(view: UIView) { init(view: UIView) {
super.init() super.init()
let newBounds = CGRect(x: 1, y: 1, width: view.bounds.width - 2, height: view.bounds.height - 2) let newBounds = CGRect(x: 1, y: 1, width: view.bounds.width - 2, height: view.bounds.height - 2)