Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #30 from amiantos/develop
Browse files Browse the repository at this point in the history
fix: other keyboards not being available during artist search
  • Loading branch information
amiantos committed Nov 22, 2018
2 parents 84de5a9 + e1fb5d0 commit af2d4ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Numu Tracker/Info.plist
Expand Up @@ -32,7 +32,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>854</string>
<string>858</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
Expand Down
3 changes: 2 additions & 1 deletion Numu Tracker/Views/artists/ArtistsTableViewController.swift
Expand Up @@ -189,7 +189,7 @@ class ArtistsTableViewController: UITableViewController, UISearchBarDelegate, UI
searchController.searchBar.showsCancelButton = false
searchController.searchBar.delegate = self
searchController.searchBar.barStyle = .blackTranslucent
searchController.searchBar.keyboardType = .alphabet
searchController.searchBar.keyboardType = .default
searchController.searchBar.keyboardAppearance = .dark
searchController.searchBar.searchBarStyle = .default
searchController.searchBar.backgroundColor = .black
Expand Down Expand Up @@ -316,6 +316,7 @@ class ArtistsTableViewController: UITableViewController, UISearchBarDelegate, UI
NSObject.cancelPreviousPerformRequests(withTarget: self, selector: #selector(self.reload), object: nil)
self.perform(#selector(self.reload), with: nil, afterDelay: 1)
}


@objc func reload() {
if let searchText = searchController.searchBar.text, !searchText.isEmpty, searchText.count > 2 {
Expand Down

0 comments on commit af2d4ef

Please sign in to comment.