PagerKit
Expert guidance on PagerKit, a SwiftUI library for advanced, customizable page-based navigation. Use when developers mention: (1) PagerKit, PKPagesView, PKPage, (2) custom page controls, indicators, or paging behavior, (3) cross-platform SwiftUI paging, (4) dynamic page generation, (5) integrating page views into custom layouts, (6) specific PagerKit modifiers or enums, (7) page view controller options, (8) event handling for page changes.
Why use this skill?
Get expert guidance on PagerKit for SwiftUI. Learn to build dynamic, cross-platform paging, custom indicators, and advanced navigation flows with this OpenClaw skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/szpakkamil/pagerkitWhat This Skill Does
The PagerKit skill acts as an expert technical companion for the PagerKit SwiftUI library. It empowers developers to implement advanced, customizable page-based navigation with ease. The skill provides deep architectural insights into PKPagesView and PKPage components, ensuring that developers can handle dynamic content, complex state management, and platform-specific UI configurations effectively. Whether you are building an onboarding flow for iOS, a documentation carousel for macOS, or a custom tabbed experience, this skill offers idiomatic solutions that adhere to SwiftUI best practices, ensuring your code remains clean, maintainable, and highly performant.
Installation
To integrate this skill into your environment, use the OpenClaw CLI tool to fetch the package from the official source repository:
clawhub install openclaw/skills/skills/szpakkamil/pagerkit
Ensure that your project meets the minimum requirements: Swift 5.9 or higher, and a deployment target of at least iOS 14.0, iPadOS 14.0, macOS 14.0, tvOS 14.0, watchOS 10.0, or visionOS 1.0.
Use Cases
- Dynamic Content: Efficiently rendering a list of data objects into individual
PKPageinstances usingForEachorPKPageBuilder. - Custom UI Components: Creating bespoke page indicators, navigation controls, or transition effects that integrate seamlessly with
PKPagesView. - Cross-Platform Consistency: Managing page layouts that need to function identically across iPhone, iPad, and macOS, while gracefully handling platform-specific constraints.
- Complex Navigation Flow: Implementing conditional page rendering based on user interaction or state shifts within the application.
- Event Handling: Wiring up programmatic navigation and observing page change events to trigger analytics or business logic.
Example Prompts
- "How can I dynamically render a list of 10 items into a horizontally scrolling PKPagesView while updating a custom indicator based on the current page index?"
- "I need to implement a vertical paging layout for my macOS app using PagerKit. What modifier should I use to switch the navigation orientation, and are there any specific quirks for the macOS target?"
- "Show me the best way to use PKPageBuilder to include an optional 'Terms of Service' page only if the user hasn't accepted it yet."
Tips & Limitations
- Stay Idiomatic: Always prefer
PKPageBuilderfor structured content. Avoid complex view hierarchies insidePKPagethat bypass standard SwiftUI data flow (like@Stateor@Binding). - Platform awareness: Always use
#if os(...)blocks when working with native controllers that aren't available across all Apple devices. PagerKit abstracts much of this, but deep customization may still require platform-specific tuning. - Performance: When dealing with large datasets, ensure that the data backing your
PKPagesViewis efficient, and use lazy loading patterns where applicable to keep the main thread responsive during swipe interactions. - Documentation: The library is strictly SwiftUI; do not attempt to force UIKit-specific controller logic outside of the supported modifiers.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-szpakkamil-pagerkit": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
ColorKit
Expert guidance on ColorKit, a Swift library for advanced color manipulation, conversion, and accessibility management. Use when developers mention: (1) CKColor, CKBlendMode, CKAPCA, (2) color space conversion (OKLAB, Display P3, sRGB), (3) WCAG or APCA contrast checks, (4) hex color initialization, (5) dynamic/adaptive colors for Dark Mode, (6) perceptual gamut mapping.
SearchBar
Expert guidance on SearchBar, a customizable SwiftUI search component. Use when developers mention: (1) SearchBar, (2) custom search bars in SwiftUI, (3) search tokens or suggestions, (4) styling search bars (glass, capsule), (5) cross-platform search (iOS, macOS, visionOS), (6) specific SearchBar modifiers like .searchBarStyle or .searchBarSuggestions.
SymbolPicker
Expert guidance on SymbolPicker, a native SwiftUI SF Symbol picker. Use when developers mention: (1) SymbolPicker, (2) selecting SF Symbols, (3) picking symbols with colors, (4) customizing symbol picker appearance, (5) cross-platform symbol selection (iOS, macOS, visionOS), (6) specific modifiers like .symbolPickerSymbolsStyle or .symbolPickerDismiss.