Open chipbk10 opened 11 months ago
@State is use when we have to observe primitive thing like string,bool etc
Suppose we have two view A And B and a have string and we have to change the String in view A by View B then @Binding is use
Wnen we have to observe classes then we will use @ObervedObject
@Environment is use when your view is dependent on type that is cannot conform to ObservableObject
Source