SwiftUI: Why onReceive run duplicate when binding a field inside ObservableObject? – Ios swift
This is my code and "print("run to onReceive (text)")" run twice when text change (like a image). Why? and thank you! import SwiftUI class ContentViewViewModel : ObservableObject { @Published var text = "" } struct ContentView: View { @StateObject private…