Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
29
iphone/Maps/UI/Search/SearchNoResultsViewController.swift
Normal file
29
iphone/Maps/UI/Search/SearchNoResultsViewController.swift
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
|
||||
final class SearchNoResultsViewController: MWMViewController {
|
||||
|
||||
static var controller: SearchNoResultsViewController {
|
||||
let storyboard = UIStoryboard.instance(.main)
|
||||
return storyboard.instantiateViewController(withIdentifier: toString(self)) as! SearchNoResultsViewController
|
||||
}
|
||||
|
||||
@IBOutlet private weak var container: UIView!
|
||||
@IBOutlet fileprivate weak var containerBottomOffset: NSLayoutConstraint!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
container.addSubview(MWMSearchNoResults.view(with: nil,
|
||||
title: L("search_not_found"),
|
||||
text: L("search_not_found_query")))
|
||||
MWMKeyboard.add(self)
|
||||
onKeyboardAnimation()
|
||||
}
|
||||
}
|
||||
|
||||
extension SearchNoResultsViewController: MWMKeyboardObserver {
|
||||
|
||||
func onKeyboardAnimation() {
|
||||
containerBottomOffset.constant = MWMKeyboard.keyboardHeight()
|
||||
view.layoutIfNeeded()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue