chore: update element compare method

This commit is contained in:
dscyrescotti
2024-06-24 19:34:51 +07:00
parent 061be60b35
commit 7946253b60
2 changed files with 3 additions and 3 deletions

View File

@@ -70,8 +70,8 @@ enum Element: Equatable, Comparable {
switch (lhs, rhs) {
case let (.stroke(leftStroke), .stroke(rightStroke)):
leftStroke ^= rightStroke
case let (.photo(leftPhoto), .photo(rightPhoto)):
leftPhoto == rightPhoto
case (.photo, .photo):
true
default:
false
}

View File

@@ -32,7 +32,7 @@ class DrawingView: UIView {
}
func updateDrawableSize(with size: CGSize) {
renderView.drawableSize = size.multiply(by: 2.5)
renderView.drawableSize = size.multiply(by: 2.6)
}
override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {