use new dropdown for browsing files (#1400)

This commit is contained in:
Ryan Nystrom
2018-01-13 16:37:29 -05:00
committed by GitHub
parent 5e67f048d5
commit cb15bc47c8
5 changed files with 103 additions and 11 deletions

View File

@@ -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