Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Conversation

@jverkoey
Copy link
Contributor

@jverkoey jverkoey commented Dec 15, 2017

No description provided.

@codecov
Copy link

codecov bot commented Dec 16, 2017

Codecov Report

Merging #102 into develop will decrease coverage by 0.24%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #102      +/-   ##
===========================================
- Coverage    86.08%   85.83%   -0.25%     
===========================================
  Files           26       25       -1     
  Lines         2544     2605      +61     
  Branches       154      156       +2     
===========================================
+ Hits          2190     2236      +46     
- Misses         340      355      +15     
  Partials        14       14
Impacted Files Coverage Δ
...sts/unit/HeadlessLayerImplicitAnimationTests.swift 100% <100%> (ø) ⬆️
src/MDMMotionAnimator.m 79.03% <0%> (-9.27%) ⬇️
tests/unit/InitialVelocityTests.swift 81.25% <0%> (-2.09%) ⬇️
src/private/CABasicAnimation+MotionAnimator.m 88.03% <0%> (-0.06%) ⬇️
tests/unit/AnimationRemovalTests.swift 100% <0%> (ø) ⬆️
tests/unit/MotionAnimatorTests.swift 100% <0%> (ø) ⬆️
tests/unit/MotionAnimatorTests.m 100% <0%> (ø) ⬆️
tests/unit/WindowManagement.swift
tests/unit/ImplicitAnimationTests.swift 99.06% <0%> (ø) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 891f25c...efdab36. Read the comment docs.

@jverkoey jverkoey changed the title Iterating on the readme. WIP Iterating on the readme. Dec 18, 2017
@jverkoey jverkoey changed the title WIP Iterating on the readme. Iterating on the readme. Dec 19, 2017
@jverkoey
Copy link
Contributor Author

Ready for review.

@jverkoey
Copy link
Contributor Author

README.md Outdated
<tr><td>🎉</td><td>Implicit and explicit additive animations.</td></tr>
<tr><td>🎉</td><td>Parameterized motion with the <a href="https://github.com/material-motion/motion-interchange-objc">Interchange</a>.</td></tr>
<tr><td>🎉</td><td>Provide velocity to animations directly from gesture recognizers.</td></tr>
<tr><td>🎉</td><td>Minimize jank by relying more on Core Animation.</td></tr>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we come up with a more precise term than "jank"? What exactly are we minimizing? Is it measurable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@romoore
Copy link

romoore commented Dec 19, 2017

Sorry, I think this is just too long for me to sit and review all at once.

@jverkoey
Copy link
Contributor Author

Ah that's fair - I can split it up into separate pieces.

@jverkoey jverkoey force-pushed the readme branch 6 times, most recently from 464ef6e to 64e058e Compare December 22, 2017 16:04
@jverkoey
Copy link
Contributor Author

jverkoey commented Dec 22, 2017

This PR is ready for re-review. It now includes only the animatable key paths charts and additions of the quiz tests to the unit tests.

XCTAssert(view.layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = view.layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration() + 0.1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(view.layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = view.layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration() + 0.1)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

func testDoesImplicitlyAnimateInCATransaction() {
CATransaction.begin()
CATransaction.setAnimationDuration(0.5)
func testDoesImplicitlyAnimate() {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit/Naming: "What is implicitly animating?" testUnhostedLayerInWindowDoesImplicitlyAnimate?

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, CATransaction.animationDuration())
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

XCTAssert(layer.animation(forKey: "opacity") is CABasicAnimation)
if let animation = layer.animation(forKey: "opacity") as? CABasicAnimation {
XCTAssertEqual(animation.keyPath, "opacity")
XCTAssertEqual(animation.duration, traits.duration)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Please use XCTAssertEqualWithAccuracy

@jverkoey jverkoey removed the request for review from samnm March 6, 2018 16:23
@jverkoey jverkoey changed the title Iterating on the readme. Add list of explicitly animatable properties Mar 6, 2018
@jverkoey jverkoey merged commit 97d7bcd into develop Mar 6, 2018
@jverkoey jverkoey deleted the readme branch March 6, 2018 16:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants