Skip to content

Commit

Permalink
Remove legacy code
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Jun 22, 2021
1 parent c210379 commit 3c32b28
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Classes/VTAcknowledgementsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -318,13 +318,8 @@ - (void)openLink:(UIGestureRecognizer *)sender {
NSString *text = [(UILabel *)sender.view text];
NSURL *URL = [VTParser firstLinkInText:text];

if (@available(iOS 9.0, *)) {
SFSafariViewController *viewController = [[SFSafariViewController alloc] initWithURL:URL];
[self presentViewController:viewController animated:YES completion:nil];
}
else {
[[UIApplication sharedApplication] openURL:URL];
}
SFSafariViewController *viewController = [[SFSafariViewController alloc] initWithURL:URL];
[self presentViewController:viewController animated:YES completion:nil];
#endif
}

Expand Down

0 comments on commit 3c32b28

Please sign in to comment.