A Swift library for creating custom modal transition animations in iOS with a simple API.
AZTransitions is a Swift library for iOS that enables developers to create custom modal transition animations with a streamlined API. It solves the problem of complex and verbose UIKit transition implementations by providing a simple subclassing model and key properties to control animations. The library helps developers focus on creative animation design rather than boilerplate transition code.
iOS developers building apps with custom UI/UX who need to implement branded or creative modal transitions beyond Apple's default options. It's particularly useful for those familiar with UIKit who want to simplify transition animation code.
Developers choose AZTransitions because it reduces the complexity of custom transition creation with a clean, focused API. Its unique selling point is the ability to define transitions in one method while providing access to all necessary UIKit components, making it both powerful and easy to use compared to manual transition implementations.
API to make great custom transitions in one method
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Abstracts UIKit's complex transition system into a simple subclassing model, reducing boilerplate code and allowing focus on animation logic in methods like performTransition(interactive:).
Enables quick integration by assigning transitions via the customModalTransition property or dedicated setCustomModalTransition methods before presenting view controllers, as shown in the code examples.
Provides direct access to key properties like duration, presentingViewController, and presentedViewController, allowing developers to build complex and creative animations with full UIKit control.
Includes built-in methods for dismissal animations, interactive transitions, and orientation handling, covering a wide range of modal transition needs beyond basic presentations.
The README admits that examples for interactive animations and orientation handling are 'planned' or 'will be added soon', leaving developers to figure out advanced implementations on their own.
Does not support SwiftUI natively, making it unsuitable for modern iOS projects without additional bridging work using UIViewControllerRepresentable, which adds complexity.
Unlike libraries with pre-styled effects, it necessitates subclassing CustomModalTransition and writing animation code for each transition, which can be time-consuming for simple use cases.