- [Instructor] Now that we know how to update and animate…a single constraint property,…how do we manage a total constraint replacement?…Well, if you still got your debug console open,…you'll see that the status of the constraint…is printed out in the description.…This gives us a clue as to how…we can swap constraints programmatically.…The first thing we need to do is…find the constraint we want to delete.…For this example, we're going to swap out the…Welcome label's top constraint so it moves up in sync…with the newsletter height increase.…
Let's open up the main storyboard, select the welcome label,…and mouse over the top constraint.…Go head and open up your utilities fold out…and let's set the identifier to welcome label top…and hit enter.…Now, back in the view controller underneath animate…newsletter height, let's start ourselves a new function.…We'll call it animateWelcomeLabel.…Now in here, we're going to use the same process to…find our constraint so if let welcomeTop equals…view.returnConstraint with ID, call this WelcomeLabelTop,…
- 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.