Corner cycling animation
A 25-minute UIKit exercise. A small logo view has to move through the four corners in order, top-left, top-right, bottom-right, bottom-left, forever, like the old DVD screensaver. How would you implement it?
A 25-minute UIKit exercise. A small logo view has to move through the four corners in order, top-left, top-right, bottom-right, bottom-left, forever, like the old DVD screensaver. How would you implement it?
Keep the four target frames in an array and chain calls: in UIView.animate's completion, call the same function again with the next index. .repeat only repeats a single block and can't express a four-leg path.
SwiftUIShort answerBasics
This is a 15-minute SwiftUI live coding exercise. Tapping an "Add" button should show a…
#animation #live-coding
UIKitMultiple choiceBasics
This Auto Layout code is meant to slide a panel up, but the panel jumps into place with…
#animation
UIKitShort answerExpert
A view animates across the screen over 3 seconds with a UIView animation. Tapping it…
#animation
UIKitShort answerBasics
Live coding. Given an [UIImage], how would you build a custom UIView that pins one image…
#live-coding