Closed markst closed 2 years ago
Wondering if it's possible to chain UState properties.
UState
For instance if I have a view model with a UState:
struct ShowDetailViewModel { @UState var tracklist: NSAttributedString = .init(string: "")
class ShowDetailView: UView { @UState var viewModel: ShowDetailViewModel?
UText($viewModel.$tracklist)
@markst yes It is possible this way
UText($viewModel.and($tracklist).map { left, right in return "\(left)\(right)" })
Wondering if it's possible to chain
UState
properties.For instance if I have a view model with a
UState
: