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
weak_delegate
This is a complement to #3456:
The weak delegate rule fires on the following declaration, which is not appropriate:
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
I will create a PR follow up PR, complementing the exception for these SwiftUI specified wrappers.
The text was updated successfully, but these errors were encountered:
I noticed that #3599 is approved but not merged. In case it wasn't clear to anyone the kinda difficult to arrive at workaround is this.
struct TimeTravelApp: App { // swiftlint:disable:next weak_delegate @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
New Issue Checklist
New rule request
This is a complement to #3456:
The weak delegate rule fires on the following declaration, which is not appropriate:
@NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
I will create a PR follow up PR, complementing the exception for these SwiftUI specified wrappers.
The text was updated successfully, but these errors were encountered: