Avatar
もっといい方法があるかもしれないから聞いてみた。 https://forums.swift.org/t/one-way-data-binding-from-observedobject-with-swiftui/37547
Is it possible to achieve one-way data binding with SwiftUI in the situation like below? import Combine final class Counter: ObservableObject { @Published private(set) var count: Int = 0 func increment() { count += 1 } func reset() { count = 0 } } import SwiftUI...