Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. AlertTransition

AlertTransition

MITSwift

An extensible Swift library for creating custom view controller transitions, with a focus on alert and modal presentations.

GitHubGitHub
568 stars60 forks0 contributors

What is AlertTransition?

AlertTransition is an open-source Swift library for iOS that enables developers to create custom, animated view controller transitions. It provides a base class for building transitions from scratch and includes ready-to-use subclasses for common patterns like alerts, side menus, and trolley animations. The library solves the problem of implementing complex, reusable transition animations with a clean, extensible API.

Target Audience

iOS developers building apps with custom UI/UX animations, particularly those needing tailored alert dialogs, modal presentations, or navigation transitions beyond UIKit's defaults.

Value Proposition

Developers choose AlertTransition for its modular design—it doesn't lock you into predefined animations but provides a foundation to build your own or use included subclasses. Its ability to wrap existing transition libraries and support for self-sizing layouts reduces boilerplate code and increases flexibility.

Overview

AlertTransition is a extensible library for making view controller transitions, especially for alert transitions.

Use Cases

Best For

  • Creating custom alert dialogs with unique entrance animations
  • Building side menus with smooth transition effects
  • Implementing trolley or bottom-sheet style modals
  • Wrapping third-party transition libraries like BubbleTransition or StarWars.iOS
  • Developing reusable transition components for iOS apps
  • Adding orientation-aware animated modals to Swift projects

Not Ideal For

  • Projects built exclusively with SwiftUI, as it's UIKit-based and lacks native SwiftUI integration
  • Teams needing drop-in, pre-animated transition components without any subclassing or configuration
  • Apps targeting iOS versions below 8.0, since the library requires iOS 8.0+
  • Simple applications where standard UIKit modal presentations suffice; using AlertTransition adds unnecessary complexity

Pros & Cons

Pros

Extensible Foundation

AlertTransition is designed as a superclass with no default animations, allowing developers to build completely custom transitions from scratch, as emphasized in its modular philosophy.

Pre-built Subclasses

Includes ready-to-use subclasses like EasyTransition for composed animations, MenuTransition for side menus, and TrolleyTransition for trolley modals, with GIF demos in the README for quick implementation.

Flexible Layout Support

Supports both explicit frames via AlertFrameProtocol and auto-layout self-sizing, with README examples showing how to handle constraint conflicts for responsive designs.

Background Customization

EasyTransition allows background changes with blur effects or custom colors using the backgroundType property, enhancing visual appeal without extra code.

Cons

Subclassing Overhead

Creating custom transitions requires subclassing AlertTransition and overriding methods like performPresentedTransition, demanding familiarity with UIKit's transition APIs and adding development time.

Sparse Documentation

The README admits the author is 'not good at English' and lacks in-depth tutorials or API references, which can hinder learning and troubleshooting for complex use cases.

Constraint Conflicts

In self-sizing mode, the library notes that 'there maybe constraint conflicts' requiring manual priority adjustments, making auto-layout integration error-prone and tedious.

Frequently Asked Questions

Quick Stats

Stars568
Forks60
Contributors0
Open Issues0
Last commit8 years ago
CreatedSince 2017

Tags

#view-controller-transitions#ios#ui-animation#animation#transition#sidemenu#swift4#alertview#alert#mobile-development#swift#modal-presentation#side-menu#uikit

Built With

U
UIKit
i
iOS
S
Swift

Included in

iOS51.7k
Auto-fetched 11 hours ago

Related Projects

HeroHero

Elegant transition library for iOS & tvOS

Stars22,488
Forks1,727
Last commit1 year ago
BubbleTransitionBubbleTransition

A custom modal transition that presents and dismiss a controller with an expanding bubble effect.

Stars3,300
Forks245
Last commit5 years ago
SPStorkControllerSPStorkController

Now playing controller from Apple Music, Mail & Podcasts Apple's apps.

Stars2,730
Forks200
Last commit3 years ago
TransitionTransition

Easy interactive interruptible custom ViewController transitions

Stars2,626
Forks127
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub