Skip to content

Commit

Permalink
onReceive demo code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlongco committed Nov 28, 2021
1 parent c32110e commit 0a251be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Builder/Details/DetailViewController.swift
Expand Up @@ -60,8 +60,8 @@ class DetailViewController: UIViewController {
}
.padding(20)
.spacing(20)
.onReceive(viewModel.$accepted) { _, value in
print(value)
.onReceive(viewModel.$accepted) { context, value in
context.view.accessibilityLabel = value ? "Terms accepted." : "Terms Not yet accepted."
}
}
.backgroundColor(.quaternarySystemFill)
Expand Down

0 comments on commit 0a251be

Please sign in to comment.