컴바인 데이터 바인딩
combine
Subject
PassthroughSubject
var name = PassthroughSubject<String, Never>()
subject.send("명지")
private var bag = Set<AnyCancellable>()
name.sink { result in
print(result)
}.store(in: &bag)
var name = PassthroughSubject<String, Never>()
subject.send("명지")
private var bag = Set<AnyCancellable>()
name.sink { result in
print(result)
}.store(in: &bag)