import SwiftUI // TODO: This should have a #DEBUG tag, but if so, it's not possible to compile this on release mode and submit it to testflight struct StateContainer: View { @State private var state: T private var content: (Binding) -> Content init(initialState: T, content: @escaping (Binding) -> Content) { self._state = State(initialValue: initialState) self.content = content } var body: some View { content($state) } }