Skip to content

Commit

Permalink
[Demo#546] Subscribe to space component on run loop main.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-zimmermann committed Oct 17, 2023
1 parent 5aac3f9 commit 2bb6173
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class ComponentUIView: UIView {
// MARK: - Subscribe

private func setupSubscriptions() {
self.viewModel.$spaceContainerType.subscribe(in: &self.subscriptions) { [weak self] type in
self.viewModel.$spaceContainerType.subscribe(in: &self.subscriptions, on: RunLoop.main) { [weak self] type in
guard let self = self else { return }
self.viewModel.spaceContainerTypeConfigurationItemViewModel.buttonTitle = type.name
self.updateSpaceContainerViews()
Expand Down

0 comments on commit 2bb6173

Please sign in to comment.