We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following triggers the unavailable_condition warning but when using the recommended code, it gives compiler error
if #available(macOS 11.0, *) { // Do nothing } else if #available(macOS 10.15, *) { print("do some stuff") }
if #unavailable(macOS 11.0, *), #available(macOS 10.15, *) { // #available and #unavailable cannot be in the same statement print("do some stuff") }
swiftlint version
xcodebuild -version
Describe the bug
The text was updated successfully, but these errors were encountered:
unavailable_condition
#(un)available
Successfully merging a pull request may close this issue.
New Issue Checklist
Describe the bug
The following triggers the unavailable_condition warning but when using the recommended code, it gives compiler error
Complete output when running SwiftLint, including the stack trace and command used
Environment
swiftlint version
to be sure)? 0.47.1xcodebuild -version
)? Xcode 13.4 Build version 13F17aDescribe the bug
sectionThe text was updated successfully, but these errors were encountered: