From 67f5ba43b9fe8559faa6de2e7b0906b96bed4939 Mon Sep 17 00:00:00 2001 From: banjun Date: Thu, 2 Nov 2023 19:16:33 +0900 Subject: [PATCH] remove unneeded `@State` as a fake hook to force update SwiftUI views --- Example/ContentView.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Example/ContentView.swift b/Example/ContentView.swift index 3d4988a..467a8c7 100644 --- a/Example/ContentView.swift +++ b/Example/ContentView.swift @@ -11,9 +11,8 @@ import SwiftUI struct ContentView: View { #if DEBUG - // these two lines are fake hook to force update of SwiftUI views + // this is a fake hook to force update of SwiftUI views @ObservedObject private var reloader = App.reloader - @State private var requiredDummyState: Void = () #endif // mark `dynamic` to be replaced runtime