Fix crash on iOS 15

This commit is contained in:
Maurice Parker 2021-07-16 14:28:56 -05:00
parent 33ecf4ec5b
commit 9d6bfc87b0
1 changed files with 4 additions and 0 deletions

View File

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