A Swift library for implementing sliding view controllers with a simple data source and delegate API.
Pager is a Swift library designed to implement sliding view controllers for iOS applications. It provides a clean API for creating tabbed interfaces that users can swipe between, handling the view controller transitions and tab management automatically. The library solves the problem of building custom swipeable navigation without reinventing the wheel.
iOS developers building apps that require tabbed navigation with swipe gestures, such as onboarding flows, profile sections, or content browsers.
Developers choose Pager for its simplicity and minimal setup—it reduces boilerplate code compared to manual implementations and offers a Swift-native port from the popular CKViewPager, ensuring modern language compatibility.
Pager is the simplest and best way to implement sliding view controllers in Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Subclassing PagerController and implementing data source methods allows quick integration without extensive boilerplate, as shown in the README's basic usage example.
Supports both custom tab views and full view controllers per tab via optional protocol methods, enabling versatile UI designs beyond standard tab bars.
Provides optional delegate methods that include previous index and swipe gesture data, offering fine-grained control over tab change events.
Ports the popular CKViewPager from Objective-C to Swift, providing a modern syntax alternative for iOS developers.
The library targets Swift 4.0, which is obsolete and may cause compatibility issues with newer Swift versions (e.g., Swift 5+) and iOS SDKs without updates.
The README lacks detailed examples, advanced usage guides, or troubleshooting tips, forcing developers to rely on trial and error for customization.
As a UIKit-based library, it doesn't support SwiftUI, making it unsuitable for projects adopting Apple's modern declarative UI framework.
Missing common paging features like lazy loading, dynamic tab updates, or built-in accessibility support, which might require manual implementation.