From bb6b23f0da884bd3ec3f66560482b275bc6a4fcf Mon Sep 17 00:00:00 2001 From: phranck Date: Mon, 2 Feb 2026 18:36:59 +0100 Subject: [PATCH] Fix: Rename @State var count to countValue to avoid SwiftLint empty_count false positive --- Tests/TUIkitTests/StateStorageIdentityTests.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/TUIkitTests/StateStorageIdentityTests.swift b/Tests/TUIkitTests/StateStorageIdentityTests.swift index 7c84871..cbf4811 100644 --- a/Tests/TUIkitTests/StateStorageIdentityTests.swift +++ b/Tests/TUIkitTests/StateStorageIdentityTests.swift @@ -240,14 +240,14 @@ struct StateStorageIdentityTests { /// A view that initializes @State to 0 then immediately sets it to 42. /// On reconstruction, the state should still be 42 (not reset to 0). private struct CounterView: View { - @State var count = 0 + @State var countValue = 0 var body: some View { - if count == 0 { + if countValue == 0 { // First render: set to 42 - count = 42 + countValue = 42 } - return Text("Count:\(count)") + return Text("Count:\(countValue)") } }