Using global variable, this works:
@available(iOS 16.1, *)
var activity: Activity<RememberAttributes>?
If I want to try making it into a state variable, but I will get this error "'Activity' is only available in iOS 16.1 or newer".
Is it possible to create a state variable only when in iOS 16.1?