Releases: RanduSoft/RSQRScannerViewController
Releases · RanduSoft/RSQRScannerViewController
v2.0.0
What's New
Complete modernization of the package with Swift 6 strict concurrency and SwiftUI support.
Breaking Changes
- Minimum deployment target is now iOS 16 / Mac Catalyst 16
scanResultclosure replaced byonScanResult(now returnsScanResultwith value + code type)failedInitclosure replaced byonError(now returns typedScannerError)
New Features
- SwiftUI support —
CodeScannerViewwrapper - Configurable scanning —
ScannerConfigurationstruct with code types, camera position, scan mode, haptics, torch, auto-dismiss - Multiple code types — QR, EAN-8, EAN-13, Code 128, and all
AVMetadataObject.ObjectTypecodes - Continuous scanning —
.continuous(debounceInterval:)mode with deduplication - Torch toggle — built-in flashlight button
- Camera permissions — automatic permission requests with
.unauthorizederror reporting - Haptic feedback — success haptic for single scan, impact for continuous
Improvements
- Swift 6 strict concurrency with zero warnings
- Capture session runs on a background queue
- Preview layer updates on rotation
- Proper
LocalizedErrordescriptions - Modernized
.gitignore