-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add animation layer hierarchy #568
Conversation
Source/render/NodeRenderer.swift
Outdated
@@ -6,24 +6,67 @@ import UIKit | |||
import AppKit | |||
#endif | |||
|
|||
public enum Relativity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this class to original location. NodeRenderer file is a wrong location for public class.
// layer.backgroundColor = MColor.green.cgColor | ||
// layer.borderWidth = 1.0 | ||
// layer.borderColor = MColor.blue.cgColor | ||
// sublayer.backgroundColor = MColor.green.cgColor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commented code should be removed
CATransaction.setDisableActions(true) | ||
defer { | ||
CATransaction.commit() | ||
//CATransaction.flush() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to delete comment
Source/events/TouchEvent.swift
Outdated
@@ -36,11 +37,13 @@ public struct TouchPoint { | |||
|
|||
private let absoluteLocation: Point | |||
private let relativeLocation: Point // location inside the node | |||
private let viewLocation: Point // location relative t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location relative t?
Source/views/MacawView.swift
Outdated
@@ -275,12 +252,15 @@ open class MacawView: MView, MGestureRecognizerDelegate { | |||
let inverted = node.place.invert()! | |||
let loc = location.applying(inverted.toCG()) | |||
|
|||
let invertedViewPlace = self.place.invert()! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a normal case when invert return nil. Please handle this case correctly.
This reverts commit a727519.
No description provided.