Hello all,
We have an app that targets minimum iOS version 14 and up and uses some SwiftUI.
In one source file we are using the @FocusState property wrapper to manage field focus.
Because this available in iOS 15 and up we have to mark the property with @available. This worked fine until the release of Xcode 14 which now flags a compile error:
Stored properties cannot be marked potentially unavailable with '@available'
@available(iOS 15.0, *)
@FocusState private var secureFieldFocused: Bool
Are there any recommended workarounds for this? Making iOS 15 the minimum version is not an option for this app right now :(
Thanks!
Selecting any option will automatically load the page