An extensible Swift library for creating custom view controller transitions, with a focus on alert and modal presentations.
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.
iOS developers building apps with custom UI/UX animations, particularly those needing tailored alert dialogs, modal presentations, or navigation transitions beyond UIKit's defaults.
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.
AlertTransition is a extensible library for making view controller transitions, especially for alert transitions.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
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.
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.
Supports both explicit frames via AlertFrameProtocol and auto-layout self-sizing, with README examples showing how to handle constraint conflicts for responsive designs.
EasyTransition allows background changes with blur effects or custom colors using the backgroundType property, enhancing visual appeal without extra code.
Creating custom transitions requires subclassing AlertTransition and overriding methods like performPresentedTransition, demanding familiarity with UIKit's transition APIs and adding development time.
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.
In self-sizing mode, the library notes that 'there maybe constraint conflicts' requiring manual priority adjustments, making auto-layout integration error-prone and tedious.