[FEAT] Update the SwiftyCrypto to support iOS 16 #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
With the release of iOS 16, Apple has introduced native support for the CommonCrypto framework. As a result, we need to update our code to take advantage of this native support and simplify the conditional import statements.
In the existing code, we have the following conditional import statements:
To align with iOS 16's native support for CommonCrypto, we can now directly import the framework without the need for conditional checks. This will improve the code's clarity and remove unnecessary complexity.
It's important to note that while we are updating the code to leverage native support in iOS 16, we should also ensure backward compatibility with earlier iOS versions if required. If necessary, we can use version checks or alternative implementations to maintain compatibility.
This update brings several benefits, including improved code readability, streamlined import statements, and taking advantage of Apple's recommended approach for cryptographic operations on iOS.