How to check the API availability for stored property in Xcode 14?

The following grammar is no longer available in Xcode 14, but the Store property is only available in macOS 12.0 +, my app also supports macOS 11.0, and now the compile is error, how can I solve this problem?

struct PayButton: View {
    @available(macOS 12.0, *)
    @EnvironmentObject var store: Store
    ...
}
How to check the API availability for stored property in Xcode 14?
 
 
Q