EFQRCode 6.1.0
Official V6 Release ๐
This release contains breaking changes, in addition to those mentioned in v6.0.0!
Migration
Wonder what's new in this official V6 release? How do I fix those new warnings? Check out the migration guide here: https://github.com/EFPrefix/EFQRCode/discussions/115, or watch the video demonstration on YouTube ๆ่ bilibili.
Changelog
Add
- Supports chaining
EFQRCodeGeneratorconfiguration methods. EFQRCodeGeneratorproperties are now public.EFQRCodeGenerator.clearCachecan be used to free up memories used for caching results.- English documentation is now available through Xcode quick help.
- Swift:
EFWatermarkMode.rectForWatermark(ofSize:inCanvasOfSize:)can be used to calculate the frame for watermark image in a canvas. - Objective-C: New tests to ensure APIs are available in Objective-C.
Change
- Renamed
EFQRCodeGeneratorconfiguration methods to be more consistent.- Renamed
EFQRCodeand reordered convenience generate function arguments to be consistent with generator methods.
- Renamed
EFQRCodeGeneratornow caches more generated contents to improve performance.EFQRCodeRecognizerexpects non-nil image and returns non-nil array of results. The returned array may still be empty.EFIntSizeis now an immutable, final class.- Renamed
CGColorextensionswhiteandblackto omit first argument label. - Objective-C:
EFQRCodeGeneratorandEFQRCodeRecognizeris now fully available to configure/use in Objective-C.
Deprecate
EFQRCodeMode.noneis now deprecated. UsenilandEFQRCodeMode?instead.
Remove
EFUIntPixelis no longer a part of the public interface.- GIF generation no longer takes
pathToSaveparameter. - Objective-C:
EFQRCodeis no longer available in Objective-C. UseEFQRCodeGeneratorandEFQRCodeRecognizerinstead.
Release Notes from v6.0.0
Add
- Add support to compile for macOS 10.10 using CocoaPods.
Change
- QRCodeSwift (FKA swift_qrcodejs) is now conditional dependency with Swift Package Manager 5.3+.
Remove
- Drop iOS 8 support from CocoaPods with Xcode 12 #101;
- Remove
CoreandwatchOSsubspecs #100.- Please integrate EFQRCode directly instead of using subspecs.
- QRCodeSwift should still be a conditional dependency for watchOS only.
What happened to semantic versioning?
Yes, I should have named release 6.0.0 as 6.0.0-rc.1, but I guess it's too late now :P