I'm seeing the exact same thing, and I can't believe that this post is the only thing I can find online about it! I have one view that's 183 lines, including comments and empty lines, but without the #Preview, and the code coverage table shows that it has 624 lines. It's bad enough that it's well nigh impossible to unit-test SwiftUI views, but wildly inflating their line counts is causing our overall test coverage numbers to be much lower than they should be.
(I've confirmed this in Xcode 16.4 and 26.0.1.)
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: