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
+2 -2
View File
@@ -70,8 +70,8 @@ enum Element: Equatable, Comparable {
switch (lhs, rhs) { switch (lhs, rhs) {
case let (.stroke(leftStroke), .stroke(rightStroke)): case let (.stroke(leftStroke), .stroke(rightStroke)):
leftStroke ^= rightStroke leftStroke ^= rightStroke
case let (.photo(leftPhoto), .photo(rightPhoto)): case (.photo, .photo):
leftPhoto == rightPhoto true
default: default:
false false
} }
@@ -32,7 +32,7 @@ class DrawingView: UIView {
} }
func updateDrawableSize(with size: CGSize) { 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 { override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {