-
-
Couldn't load subscription status.
- Fork 777
Open
Labels
Description
There are quite a few property wrappers that fail to build unless the property is explicitly initialized with nil, for example:
// Fails to build
@Invalidating(.layout)
var image: NSImage?// Builds successfully
@Invalidating(.layout)
var image: NSImage? = nilThis can be solved locally with a comment, but it's annoying and ugly:
@Invalidating(.layout)
// swiftlint:disable:next redundant_optional_initialization
var image: NSImage? = nilI think the better approach would be to disable the rule globally.