From 56d945cd0293397cfdae7b50ee7834eec5f20dd3 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Mon, 28 Sep 2020 23:45:41 -0700 Subject: [PATCH] Application links --- Views/Status/StatusView.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Views/Status/StatusView.swift b/Views/Status/StatusView.swift index 7f1f913..ab26e88 100644 --- a/Views/Status/StatusView.swift +++ b/Views/Status/StatusView.swift @@ -169,6 +169,17 @@ private extension StatusView { UIAction { [weak self] _ in self?.statusConfiguration.viewModel.favoritedBySelected() }, for: .touchUpInside) + applicationButton.addAction( + UIAction { [weak self] _ in + guard + let viewModel = self?.statusConfiguration.viewModel, + let url = viewModel.applicationURL + else { return } + + viewModel.urlSelected(url) + }, + for: .touchUpInside) + applyStatusConfiguration() }