- [Instructor] It's always a good idea…to keep as much of your animation code…separated out from your view controller as possible.…With that in mind,…let's take a shot at updating our AnimationManager…with some procedural code…to handle a view controller's initial setup.…Go ahead and open up the AnimationManager.swift file…and underneath our screen positioning variables,…let's make ourselves some room…and declare a new init function.…This initializer is going to take in…an array of NSLayoutConstraints.…We're going to call this activeConstraints.…
We'll just do open and close curly braces.…Now the idea here is to have any views…we want to position off screen…and viewWillAppear happen automatically…without having to manually code it…each time in each view controller.…And before we do any of that,…we need some variables to help us keep track…of each constraint's original position…and an array of all current constraints…on a specific manager instance.…So right above the init,…I'm going to add in a comment called Tracking variables…
- How animations fit into the view controller lifecycle
- Writing simple view animations
- Making use of animation options
- Adding spring animations
- Working with keyframes
- Using calculation modes
- Animating constraint values
Skill Level Intermediate
1. Getting Started
Starter project review1m 45s
2. Animation Basics
3. Springs and Transitions
4. Working with Keyframes
5. Auto Layout and Beyond
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.