SwiftHelpers v1.1.0 - SecureStorage Observation & Enhanced Foundation Extensions
馃殌 Major Features
SecureStorage with Reactive Updates
- NEW:
SecureStorageproperty wrapper now supports automatic observation of value changes - NEW:
AsyncThrowingStream-based observation system for real-time UI updates - NEW:
DiskNonSecureStoragefor development and preview environments - IMPROVED: Enhanced error handling with proper fallbacks and detailed error reporting
Enhanced Foundation Extensions
- IMPROVED:
Optional.unwrapped()now includes file and line information in error messages - IMPROVED:
OptionalUnwrapErrorprovides more detailed error descriptions and recovery suggestions - NEW:
HexColorContainernow conforms toCodableprotocol - DEPRECATED:
Optional.wrappedValuein favor of the more robustunwrapped()method
馃敡 Technical Improvements
Platform Compatibility
- Enhanced conditional compilation with
#if canImportguards - Better support for different platform targets (iOS, macOS, tvOS, watchOS)
- Improved Foundation networking compatibility
馃摎 Documentation
- COMPLETELY UPDATED: README.md now accurately reflects current modular architecture
- NEW: Comprehensive usage examples for all modules
- NEW: Clear installation instructions for modular dependencies
- NEW: Detailed API documentation with practical examples
馃攧 Migration Notes
Optional.wrappedValueis now deprecated - useunwrapped()instead- Storage observation is now automatic - no manual subscription management required
- Enhanced error handling may require updates to error handling code
馃摝 Module Overview
- SwiftHelpers: Main module (FoundationExtensions + CombineExtensions)
- SwiftStorage: Secure storage with reactive updates
- FoundationExtensions: Core Swift/Foundation extensions
- CombineExtensions: Combine framework utilities
- Development: Development and debugging tools
馃悰 Bug Fixes
- Fixed unsafe force unwrapping in document directory access
- Resolved observation stream lifecycle issues
- Improved error propagation in storage operations
Full Changelog: 1.0.8...v1.1.0
Breaking Changes:
Optional.wrappedValueis deprecated (useunwrapped()instead)- Storage observation API has been modernized (automatic observation, no manual subscription)
Compatibility:
- iOS 14.0+, macOS 12.0+, tvOS 14.0+, watchOS 9.0+
- Swift 5.9+