state.objectWillChange .receive(on: DispatchQueue.main) .sink { [weak self] in guard let self = self else { return } self.nameLabel.text = self.state.user?.name self.iconImageView.image = self.state.iconImage } .store(in: &cancellables)