Toolverse
All skills

axiom-photo-library-ref

by CharlesWiltgen

Reference — PHPickerViewController, PHPickerConfiguration, PhotosPicker, PhotosPickerItem, Transferable, PHPhotoLibrary, PHAsset, PHAssetCreationRequest, PHFetchResult, PHAuthorizationStatus, limited library APIs

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Category
Mobile
Views
2

About this skill

Reference — PHPickerViewController, PHPickerConfiguration, PhotosPicker, PhotosPickerItem, Transferable, PHPhotoLibrary, PHAsset, PHAssetCreationRequest, PHFetchResult, PHAuthorizationStatus, limited library APIs

How to use

  1. Zainstaluj skill axiom-photo-library-ref w swoim projekcie Claude/Codex, dodając go do konfiguracji agenta.
  2. Zaimportuj PhotosUI w pliku Swift, w którym chcesz używać selektora zdjęć.
  3. Dla aplikacji SwiftUI (iOS 16+) użyj komponentu PhotosPicker ze zmienną stanu @State do przechowywania wybranego elementu PhotosPickerItem, a następnie załaduj dane zdjęcia za pomocą loadTransferable(type: Data.self) w bloku onChange.
  4. Dla aplikacji UIKit (iOS 14+) utwórz instancję PHPickerConfiguration, ustaw selectionLimit i filter (np. .images), następnie przekaż konfigurację do PHPickerViewController i ustaw delegata.
  5. Aby zapisać zdjęcie do galerii, użyj PHPhotoLibrary.shared().performChanges z PHAssetCreationRequest.creationRequestForAsset(from: image).
  6. Sprawdź uprawnienia dostępu przed operacjami na bibliotece za pomocą PHPhotoLibrary.authorizationStatus(for: .readWrite) — PHPickerViewController nie wymaga uprawnień, ale zapis i pełny dostęp do biblioteki tak.

Related skills

android-kotlin-development

by aj-geddes

Develop native Android apps with Kotlin. Covers MVVM with Jetpack, Compose for modern UI, Retrofit for API calls, Room for local storage, and navigation architecture.

Mobile
152396

sequential-thinking

by mrgoonie

Use when complex problems require systematic step-by-step reasoning with ability to revise thoughts, branch into alternative approaches, or dynamically adjust scope. Ideal for multi-stage analysis, design planning, problem decomposition, or tasks with initially unclear scope.

Mobile
60238

mobile-design

by sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or

Mobile
6091

mobile-android-design

by wshobson

Master Material Design 3 and Jetpack Compose patterns for building native Android apps. Use when designing Android interfaces, implementing Compose UI, or following Google's Material Design guidelines.

Mobile
38181

kotlin-multiplatform

by vitorpamplona

Platform abstraction decision-making for Amethyst KMP project. Guides when to abstract vs keep platform-specific,\nsource set placement (commonMain, jvmAndroid, platform-specific), expect/actual patterns. Covers primary targets\n(Android, JVM/Desktop, iOS) with web/wasm future

Mobile
15105

slidev

by XIYO

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.

Mobile
223353