Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
younatics committed Apr 26, 2017
1 parent 61721af commit a94d1fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion YNSearch.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions YNSearch/YNSearchViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a94d1fa

Please sign in to comment.