ios animation with swift - raywenderlich.com · 2018. 11. 1. · property animations (60, 60) (280,...
TRANSCRIPT
![Page 1: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/1.jpg)
iOS Animation with Swift
Part 1: Getting Started
![Page 2: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/2.jpg)
![Page 3: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/3.jpg)
Animatable properties
frame bounds center alpha transform contentStretch backgroundColor
center.x
alpha
transform
![Page 4: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/4.jpg)
Property animations
(60, 60)
(280, 120)
(170, 90)
start time
end timeanimation duration
![Page 5: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/5.jpg)
Animation blocks
![Page 6: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/6.jpg)
UIView Animation APIs
UIView.animateWithDuration(_:, animations:) UIView.animateWithDuration(_:, animations:, completion:) UIView.animateWithDuration(_:, delay:, options:, animations:, completion:) more to come …
![Page 7: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/7.jpg)
Demo: Animating properties
![Page 8: iOS Animation with Swift - raywenderlich.com · 2018. 11. 1. · Property animations (60, 60) (280, 120) (170, 90) start time end time animation duration](https://reader034.vdocuments.us/reader034/viewer/2022051812/603025ca6dec6c4fa4538f01/html5/thumbnails/8.jpg)
Challenge Time!