# HeroTransitions/Hero

Elegant transition library for iOS & tvOS

Repository: https://github.com/HeroTransitions/Hero
Canonical: https://ross.abutalabs.com/products/hero
Homepage: https://HeroTransitions.github.io/Hero/
Language: Swift
License: MIT
License Family: permissive
Topics: animation, custom-transitions, swift, ios, ios-animation, ios-transition, material-design, transition-animation, animations, ios-swift, ios-lib, hero, xcode, ios-framework, carthage, swiftpm, layout
Last push: 2025-01-23T20:27:30+00:00

## Health v2 (maintenance only)
Score: 24/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 3, release rhythm 8, longevity 100
- inputs: {"age_days": 3569, "days_push": 587, "days_rel": 587, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 22488, forks 1728 (observed 2026-08-28T04:11:32.657849+00:00)

## What it is
Hero is a Swift library for building iOS and tvOS view controller transitions with a declarative API layered on top of UIKit's transition system. It matches views by heroID between source and destination screens (like Keynote's Magic Move) and supports gesture-driven interactive animations.

## Use cases
- create custom view controller transitions on iOS
- implement shared element transitions between screens
- add interactive swipe-to-dismiss animations
- apply Material Design motion durations to transitions
- animate modal, navigation, and tab bar transitions declaratively

## When to choose
- you build UIKit-based iOS or tvOS apps and want elegant custom transitions without fighting UIKit's transition APIs
- you need shared-element (Magic Move style) animations matched by view IDs
- you want gesture-driven, interruptible transitions

## When to avoid
- your app is built with SwiftUI and you don't touch UIKit view controllers
- you need transitions on Android or cross-platform frameworks
- you only need simple view animations within a single screen rather than controller transitions

## Facets
- artifact type: library
- maturity: stable
- function: animation, ui-components, mobile-framework
- domain: mobile-development, frontend, web-design
- platform: -
- tags: view-controller-transitions, uikit, shared-element-transitions, interactive-animations, tvos, cocoapods, swift-package-manager, ios, swift, mobile

## Member repositories
- HeroTransitions/Hero (main) score 24

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:32.657849+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:57:09.636396+00:00, confidence not recorded.
  - readme: https://github.com/HeroTransitions/Hero (fetched 2026-08-28T04:11:32.657849+00:00, sha edebc6feb9dc)
  - homepage: https://HeroTransitions.github.io/Hero/ (fetched 2026-08-29T07:55:21.517249+00:00, sha 7e2c58fe56ae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
