for iko without correct pagination (works only for general channel).

This commit is contained in:
Darya Rednikina 2019-05-01 23:58:04 +03:00
parent f24ae333b6
commit 659507bde9
5 changed files with 6 additions and 8 deletions

View File

@ -5,4 +5,4 @@ github "macteo/Marklight"
github "Alamofire/Alamofire" "5.0.0-beta.5"
github "52inc/Pulley"
github "HeroTransitions/Hero"
github "ReactiveCocoa/ReactiveCocoa" "1c089a8"
github "ReactiveCocoa/ReactiveCocoa" ~> 9.0

View File

@ -25,7 +25,7 @@ class ChannelController: UIViewController, UITableViewDelegate, UITableViewDataS
var channel: Model.Channels?
var myProtocol: DataDelegate?
var fullTags: [String] = Array(Model.Channels.fullTags)
var fullTags: [String] = CompletionTree.getCompletion(tree: Model.hashTagTree!, word: "")
var dataSourcePeople: [Model.Users] = []
@ -252,9 +252,7 @@ class ChannelController: UIViewController, UITableViewDelegate, UITableViewDataS
}
tableView.reloadData()
case 1:
dataSourceTags = fullTags.filter({ (s) -> Bool in
s.lowercased().contains(text.lowercased())
})
dataSourceTags = CompletionTree.getCompletion(tree: Model.hashTagTree!, word: text)
tableView.reloadData()
default:
break

View File

@ -121,7 +121,7 @@ class NewsVC: UIViewController, UITableViewDelegate, UITableViewDataSource {
self?.dataSourse.append(contentsOf: $0.posts)
$0.users.forEach { self?.dictionary[$0.key] = $0.value }
}
prevLast = indexPath.row
}
}

View File

@ -95,7 +95,7 @@ class LogInViewController: UIViewController {
setUpView()
configureKeyboard()
let mailFieldValuesSignal: Signal<String, Never> = mailTextField.reactive.continuousTextValues
let mailFieldValuesSignal: Signal<String, NoError> = mailTextField.reactive.continuousTextValues
mailFieldValuesSignal.observeValues(logicOfLogInInputValidation())

View File

@ -133,7 +133,7 @@ class Model{
struct Channels: Codable {
static var fullTags = Set<String>()
// static var fullTags = Set<String>()
static var fullPeople = [Users]()
static var fullPeopleDict = [Int:Users]()