Skip to content

CZPicker 1.0 beta — SwiftUI, UIKit, and Swift Package Manager

Pre-release
Pre-release

Choose a tag to compare

@zchen654 zchen654 released this 30 Oct 13:09
· 93 commits to c562e6fdd2fb23986a72685c41023914678331df since this release

CZPicker is returning with an opt-in modern interface for SwiftUI and UIKit, while preserving the original Objective-C API.

This is a beta preview, not a stable production release.

What's new

  • Swift Package Manager support, with separate CZPickerUI and legacy CZPicker products.
  • Zero external runtime dependencies.
  • Searchable single/multiple selection, selected chips, sections, disabled options, selection limits, and custom SwiftUI rows.
  • Explicit draft selection: Done commits; Cancel or swipe-to-dismiss leaves the caller's selection unchanged.
  • A UIKit presenter using the same modern interface.
  • A runnable showcase, real animated demo, and captioned screenshots in the README.

Existing users

The Objective-C headers and implementation are byte-for-byte identical to 0.4.3. The minimum deployment target is now iOS 15 for that API and iOS 16 for the opt-in modern API. SPM requires Swift tools 5.9 / Xcode 15+.

Try the beta

In Xcode, add https://github.com/chenzeyu/CZPicker.git, select Exact Version: 1.0.0-beta.1, and choose CZPickerUI or CZPicker.

.package(url: "https://github.com/chenzeyu/CZPicker.git", exact: "1.0.0-beta.1")

CocoaPods users can use the tagged Git source while Trunk publication is pending:

pod 'CZPicker/SwiftUI', :git => 'https://github.com/chenzeyu/CZPicker.git', :tag => '1.0.0-beta.1'
# Or, for the original API:
pod 'CZPicker/Core', :git => 'https://github.com/chenzeyu/CZPicker.git', :tag => '1.0.0-beta.1'

With CocoaPods, use import CZPicker; with SPM's modern product, use import CZPickerUI.

Validation and limitations

All 12 package tests and four showcase UI tests passed on the installed iPhone simulator, and the unsigned generic iOS device build passed. Both CocoaPods subspecs passed local lint. Legacy source hashes match 0.4.3.

Minimum-supported-OS runtime testing, physical-device checks, and manual VoiceOver/RTL review remain before a stable release. Some built-in strings are English. Hosted CI is not active; a workflow template is included. See docs/VALIDATION.md for details.

Please report reproducible issues with your Xcode and iOS versions. Feedback on real app integrations is especially welcome.