본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

PagerKit

szpakkamil 제작

iOS & macOS Development
1.7kclawskills.sh가 보고한 다운로드 수
1스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Expert guidance on PagerKit, a SwiftUI library for advanced.

설명

이 스킬이 하는 일

PagerKit is a SwiftUI library for building page-based navigation across iOS, iPadOS, macOS, tvOS, visionOS, and watchOS. It provides PKPagesView and PKPage components with modifiers for controlling indicators, transitions, and event callbacks. Pages can be defined statically or generated dynamically from data collections.

PagerKit replaces UIPageViewController boilerplate with a declarative SwiftUI API that works consistently across all Apple platforms without platform-specific branching for core paging logic.

사용 시점

  • Building swipeable onboarding screens in an iOS app
  • Adding a vertical story-style reader to a content app
  • Creating an auto-advancing photo slideshow with custom dot indicators
  • Implementing a multi-step form with programmatic page control
  • Tracking swipe direction for analytics in a tutorial walkthrough

예시 워크플로

입력

User asks: How do I build a horizontal onboarding flow with custom indicator colors and detect when the user swipes forward?

에이전트
  1. 1

    Wrap onboarding screens in PKPagesView with individual PKPage instances

  2. 2

    Apply .pkPageNavigationOrientation(.horizontal) for swipe direction

  3. 3

    Bind page state using .pkCurrentPageIndex(index: $currentPage)

  4. 4

    Set .pkPageControlIndicatorTintColor(.gray) and .pkPageControlIndicatorCurrentIndicatorTintColor(.blue) for styled dots

  5. 5

    Add .pkOnManualPageChange { index, direction in ... } to detect forward swipes

출력

A SwiftUI onboarding view with branded dot indicators that reports swipe direction on each page change

설치

clawhub install szpakkamil/pagerkit

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크