Deepwatch

Keyboard shortcuts

Space or k
Play or pause
j and l
Back or forward 10 seconds
Left and right arrows
Back or forward 5 seconds
f
Fullscreen
m
Mute or unmute
Shift and < or >
Slower or faster
n
Next lecture
?
Show or hide this list

Stanford CS193p: iOS Development with SwiftUI | 2025 | L8: Animation Demonstration

Stanford Online, 1 hr 11, 6.4K views, Dec 3, 2025

Show description

View course details: https://online.stanford.edu/courses/cs193p-ios-application-development All course materials are available at https://cs193p.stanford.edu. The 8th lecture of the 2025 version of Stanford's CS193p course (developing applications for iOS using SwiftUI). Animation. Demonstrates explicit animation with withAnimation(), creating custom animation constants using extensions on Animation struct, and debugging animation issues by slowing down timing. To demonstrate animation, a restart functionality is added to CodeBreaker. Talks about .animation(nil) vs .transaction() for selective animation suppression, preventing animation that could reveal hidden game state, and implementing View transitions like .move() and .offset() for keyboard-like sliding behavior. Covers animation transactions, the difference between suppressing animation based on state changes vs conditions, and creating smooth user interactions. Shows practical techniques for debugging complex animation timing issues. Paul Hegarty is a Lecturer who has been teaching CS193p at Stanford since 2010.