mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-03-31 22:43:17 +02:00
chore: update element compare method
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user