The encryption API requires macOS 15 / iOS 18 / visionOS 2.0 (CryptoKit). Since the library's minimum deployment target is lower, all encryption code is gated behind @available annotations. Some stored properties also require type-erased Any/AnyObject? backing stores since Swift doesn't support @available on stored properties.
Before 1.0.0, the minimum deployment target should be bumped to macOS 15 / iOS 18 / visionOS 2.0 to remove these workarounds.
The encryption API requires macOS 15 / iOS 18 / visionOS 2.0 (CryptoKit). Since the library's minimum deployment target is lower, all encryption code is gated behind @available annotations. Some stored properties also require type-erased Any/AnyObject? backing stores since Swift doesn't support @available on stored properties.
Before 1.0.0, the minimum deployment target should be bumped to macOS 15 / iOS 18 / visionOS 2.0 to remove these workarounds.