According to this answer on the Swift forums the ability to apply @available conditions to properties at all is a bug in Swift that has been fixed on the main branch, so it sounds like this code won't compile at all in future versions of Swift.
https://forums.swift.org/t/why-is-available-property-wrapper-allowed-but-stored-property-isnt/56459/2
It's actually a bug fixed on the main branch. Conditionally-available property wrappers are not allowed for the same reason as conditionally-available stored properties.
Topic:
Community
SubTopic:
Apple Developers
Tags: