-
Notifications
You must be signed in to change notification settings - Fork 564
Add animation layer hierarchy #568
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
Conversation
Source/render/NodeRenderer.swift
Outdated
| 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
|
|
||
| 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
| 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.