Toolverse
All skills

axiom-photo-library

by CharlesWiltgen

PHPicker, PhotosPicker, photo selection, limited library access, presentLimitedLibraryPicker, save to camera roll, PHPhotoLibrary, PHAssetCreationRequest, Transferable, PhotosPickerItem, photo permissions

Installation

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

Installation

Quick info

Category
Mobile
Views
1

About this skill

PHPicker, PhotosPicker, photo selection, limited library access, presentLimitedLibraryPicker, save to camera roll, PHPhotoLibrary, PHAssetCreationRequest, Transferable, PhotosPickerItem, photo permissions

How to use

  1. Zainstaluj skill w swoim projekcie Claude/Copilot, odwołując się do repozytorium CharlesWiltgen/Axiom.

  2. Określ, co chcesz zrobić: jeśli użytkownik ma wybrać zdjęcia bez przeglądania całej biblioteki, użyj PhotosPicker w SwiftUI; jeśli potrzebujesz pełnego dostępu do biblioteki, rozważ PHPicker.

  3. Zaimplementuj wybór zdjęć za pomocą PhotosPicker w SwiftUI lub PHPicker, pamiętając, że PhotosPicker jest preferowanym podejściem dla nowoczesnych aplikacji.

  4. Obsługuj uprawnienia prawidłowo: sprawdzaj status dostępu (authorized, limited, denied) i nie zakładaj, że użytkownik udzielił pełnego dostępu – może przyznać dostęp ograniczony.

  5. Ładuj obrazy z PhotosPickerItem asynchronicznie, aby nie blokować interfejsu użytkownika, i obsługuj błędy ładowania, szczególnie w przypadku dużych plików.

  6. Aby zapisać zdjęcie lub wideo na dysku, użyj PHPhotoLibrary i PHAssetCreationRequest, zawsze respektując uprawnienia użytkownika i unikając żądania dostępu pełnego, gdy wystarczy dostęp ograniczony.

Related skills

mobile-ios-design

by wshobson

Master iOS Human Interface Guidelines and SwiftUI patterns for building native iOS apps. Use when designing iOS interfaces, implementing SwiftUI views, or ensuring apps follow Apple's design principles.

Mobile
107284

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

swift-best-practices

by sammcj

This skill should be used when writing or reviewing Swift code for iOS or macOS projects. Apply modern Swift 6+ best practices, concurrency patterns, API design guidelines, and migration strategies. Covers async/await, actors, MainActor, Sendable, typed throws, and Swift 6

Mobile
36140

automating-mobile-app-testing

by jeremylongshore

This skill enables automated testing of mobile applications on iOS and Android platforms using frameworks like Appium, Detox, XCUITest, and Espresso. It generates end-to-end tests, sets up page object models, and handles platform-specific elements. Use this skill when the user

Mobile
17142

flutter-development

by aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

Mobile
1,1601,122

vercel-react-native-skills

by vercel-labs

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or

Mobile
1745