mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-19 07:00:39 +08:00
use new dropdown for browsing files (#1400)
This commit is contained in:
@@ -49,7 +49,7 @@ final class RepositoryCodeBlobViewController: UIViewController {
|
||||
super.viewDidLoad()
|
||||
|
||||
makeBackBarItemEmpty()
|
||||
navigationItem.configure(filePath: path)
|
||||
configureTitle(filePath: path, target: self, action: #selector(onFileNavigationTitle(sender:)))
|
||||
|
||||
view.backgroundColor = .white
|
||||
|
||||
@@ -75,6 +75,10 @@ final class RepositoryCodeBlobViewController: UIViewController {
|
||||
|
||||
// MARK: Private API
|
||||
|
||||
@objc func onFileNavigationTitle(sender: UIView) {
|
||||
showAlert(filePath: path, sender: sender)
|
||||
}
|
||||
|
||||
func didFetchPayload(_ payload: Any) {
|
||||
sharingPayload = payload
|
||||
sharingButton.isEnabled = true
|
||||
|
||||
Reference in New Issue
Block a user