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

Commit

Permalink
fix: other keyboards not being available during artist search
Browse files Browse the repository at this point in the history
  • Loading branch information
amiantos committed Nov 22, 2018
1 parent 84de5a9 commit e1fb5d0
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 e1fb5d0

Please sign in to comment.