diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cc904e..7e662a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Updates -## [v2.2.0](https://github.com/younatics/YNSearch/releases/tag/2.1.0) +## [v2.2.1](https://github.com/younatics/YNSearch/releases/tag/2.2.1) +* Minor method update + +## [v2.2.0](https://github.com/younatics/YNSearch/releases/tag/2.2.0) * More UI friendly ## [v2.1.0](https://github.com/younatics/YNSearch/releases/tag/2.1.0) diff --git a/YNSearch.podspec b/YNSearch.podspec index f7cf0cb..b67018d 100644 --- a/YNSearch.podspec +++ b/YNSearch.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'YNSearch' - s.version = '2.2.0' + s.version = '2.2.1' s.summary = 'Awesome fully customizable search view written in Swift 3' s.description = <<-DESC diff --git a/YNSearch/YNSearchViewController.swift b/YNSearch/YNSearchViewController.swift index f2c0d51..3d60518 100644 --- a/YNSearch/YNSearchViewController.swift +++ b/YNSearch/YNSearchViewController.swift @@ -27,12 +27,7 @@ open class YNSearchViewController: UIViewController, UITextFieldDelegate { super.viewDidLoad() } - - override open func viewDidAppear(_ animated: Bool) { - super.viewDidAppear(animated) - self.ynSearchView.ynSearchMainView.redrawSearchHistoryButtons() - } - + open func ynSearchinit() { self.ynSearchTextfieldView = YNSearchTextFieldView(frame: CGRect(x: 20, y: 20, width: width-40, height: 50)) self.ynSearchTextfieldView.ynSearchTextField.delegate = self @@ -57,6 +52,7 @@ open class YNSearchViewController: UIViewController, UITextFieldDelegate { open func ynSearchTextfieldcancelButtonClicked() { self.ynSearchTextfieldView.ynSearchTextField.text = "" self.ynSearchTextfieldView.ynSearchTextField.endEditing(true) + self.ynSearchView.ynSearchMainView.redrawSearchHistoryButtons() UIView.animate(withDuration: 0.3, animations: { self.ynSearchView.ynSearchMainView.alpha = 1