Skip to content

Commit

Permalink
remove unneeded @State as a fake hook to force update SwiftUI views
Browse files Browse the repository at this point in the history
  • Loading branch information
banjun committed Nov 2, 2023
1 parent 1b9c6a1 commit 67f5ba4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Example/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67f5ba4

Please sign in to comment.