Animate a product thumbnail expanding to fill the next screen when tapped.
Create smooth tab transitions with custom animations between different sections.
Build polished navigation flows where UI elements morph between screens automatically.
Simplify complex view controller transitions without writing low-level iOS animation code.
Hero is a Swift library for iOS and tvOS that makes it easy to create smooth, animated transitions between screens (called view controllers) in a mobile app. Normally, animating elements as they move from one screen to another requires a lot of complex iOS-specific code. Hero simplifies this dramatically. The core idea works similarly to Keynote's "Magic Move" feature: you give matching elements on two different screens the same identifier. When the user navigates from one screen to the other, Hero automatically animates those elements, smoothly moving, scaling, or transforming them from their position on screen one to their position on screen two. Elements that don't have a matching pair can be given separate entry or exit animations. You would use Hero when building an iOS app that needs polished screen transitions, for instance, tapping on a product thumbnail that then expands to fill the next screen, or transitioning between tabs with a custom animation. Hero works with standard iOS navigation controllers, tab bar controllers, collection views, table views, and storyboards. The library is written in Swift, targets iOS and tvOS, and can be installed via CocoaPods, Carthage, or Swift Package Manager.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.