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