Application links

This commit is contained in:
Justin Mazzocchi 2020-09-28 23:45:41 -07:00
parent 303e57a163
commit 56d945cd02
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 11 additions and 0 deletions

View File

@ -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()
}