-
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
Task/fix boy animation #512
Conversation
@@ -7,7 +7,9 @@ | |||
// | |||
|
|||
class ShapeAnimation: AnimationImpl<Shape> { | |||
convenience init(animatedNode: Shape, finalValue: Shape, animationDuration: Double, delay: Double = 0.0, autostart: Bool = false, fps: UInt = 30) { | |||
let toParentGlobalTransfrom: Transform? |
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.
Again no need to use optional property when you have great default value and it's actually used everywhere.
Source/animation/types/animation_generators/CombinationAnimationGenerator.swift
Outdated
Show resolved
Hide resolved
Source/animation/types/animation_generators/CombinationAnimationGenerator.swift
Outdated
Show resolved
Hide resolved
Source/animation/types/animation_generators/CombinationAnimationGenerator.swift
Outdated
Show resolved
Hide resolved
let fromPos = parentPos.concat(with: to.place) | ||
let toPos = parentPos.concat(with: to.place) | ||
let fromPos = parentPos.concat(with: from.place) | ||
let toParentPos = animation.toParentGlobalTransfrom ?? parentPos |
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.
Is this still valid? Looks like ??
can be avoided.
8561348
to
b4510d3
Compare
Extra optional Fix
No description provided.