Subject

PassthroughSubject

var name = PassthroughSubject<String, Never>()
subject.send("명지")
private var bag = Set<AnyCancellable>()

name.sink { result in
    print(result)
}.store(in: &bag)