Skip to content

YoungGary/CoreAnimationCode

Repository files navigation

Core Animation Code

These are code examples for the book iOS Core Animation Advanced Techniques written by Nick Lockwood, include code examples from Chapter 1 to Chapter 10.

Recently, I'm reading the awesome book. I think I should write some code. So I copy and paste the easy part from the book to Xcode, and write the hard part bodily after I understand well. Gradually, I accumulate these code examples.

Directory Tree

.
├── 1 The Layer Tree
│   └── BlueLayer
├── 2 The Backing Image
│   ├── CALayerDelegate
│   ├── LayerContent
│   └── Sprite
├── 3 Layer Geometry
│   ├── AnchorPoint
│   ├── Clock
│   ├── ContainsPoint
│   ├── ContentsCenter
│   └── ZPosition
├── 4 Visual Effects
│   ├── DropShadows
│   ├── GroupOpacity
│   ├── LCDClock
│   ├── LayerMask
│   ├── RoundedCorners
│   ├── ShadowClipping
│   └── ShadowPath
├── 5 Transforms
│   ├── CompoundTransform
│   ├── Cube
│   ├── OppositeRoationAroundY
│   ├── OppositeRotationAroundZ
│   └── SublayerTransform
├── 6 Specialized Layers
│   ├── AVPlayerLayer
│   ├── CAEAGLLayer
│   ├── CAEmitterLayer
│   ├── CAGradientLayer
│   ├── CAReplicatorLayer
│   ├── CAScrollLayer
│   ├── CAShapeLayer
│   ├── CATextLayer
│   ├── CATiledLayer
│   ├── CATransformLayer
│   ├── LayerLabel
│   ├── Reflection
│   ├── RichText
│   └── TileCutter
├── 7 Implicit Animations
│   ├── ActionForLayer
│   ├── CustomAction
│   ├── LayerActions
│   ├── PresentationLayer
│   └── Transactions
├── 8 Explicit Animations
│   ├── AnimateTransform
│   ├── AnimateUITabBarController
│   ├── AnimationDidStop
│   ├── AnimationGroup
│   ├── CABasicAnimation
│   ├── CAKeyframeAnimation
│   ├── CATransition
│   ├── CancelAnimation
│   ├── Clock
│   ├── CustomTransition
│   ├── TransformRotation
│   └── UIBezierPath
├── 9 Layer Time
│   ├── DurationAndRepeatCount
│   ├── ManualAnimation
│   ├── SwingingDoor
│   └── TimeOffsetAndSpeed
├── 10 Easing
│   ├── BouncingBall
│   ├── EasingFunction
│   ├── TimingWithCAKeyframeAnimation
│   └── UIViewEasing
├── CoreAnimationCode.xcworkspace
└── README.md

72 directories

You can open CoreAnimationCode.xcworkspace to see all projects in one workspace.

Some Interesting Examples

CAEmitterCell:

codexx

timeOffset & speed test:

code2

Manual Animation:

code3

Custom Transition:

code4

Bouncing ball(Complex timing curve):

bouncing

Cancel Animation:

cancel

CATransition:

switch

Reflection:

simulator-screen-shot-2015 10 3 - 8 52 33

CAEAGLLayer(OpenGL):

simulator-screen-shot-2015 10 3 - 8 50 35

Book

Chinese Translated version

The whole code examples can be downloaded from here: http://www.informit.com/store/ios-core-animation-advanced-techniques-9780133440751 . This repo is some kind of duplicate work. Hope it let you know the great book.

About

Code examples of the book "iOS CoreAnimation Advanced Techniques"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published