nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

The `redundantLet` rule can break SwiftUI views that use `let _ = print()` inside an overlay #1520

Closed mikemahony closed 11 months ago

mikemahony commented 11 months ago

This ticket seems to have almost fixed the issue. However, it still arises when used inside an overlay: image image

nicklockwood commented 11 months ago

@mikemahony fixed in 0.52.4