mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-26 22:58:06 +08:00
22 lines
468 B
Swift
22 lines
468 B
Swift
//
|
|
// UIViewController+AttributedStringViewDelegate.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/5/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
extension UIViewController: AttributedStringViewDelegate {
|
|
|
|
func didTapURL(view: AttributedStringView, url: URL) {
|
|
presentSafari(url: url)
|
|
}
|
|
|
|
func didTapUsername(view: AttributedStringView, username: String) {
|
|
presentProfile(login: username)
|
|
}
|
|
|
|
}
|