|
@@ -105,6 +105,16 @@ class TopicSelectionViewController: BaseViewController {
|
|
|
goButton.isEnabled = false
|
|
|
goButton.cornerRadius = 22 * kScaleWidth
|
|
|
goButton.masksToBounds = true
|
|
|
+ goButton.rx.tap.subscribe(onNext: {
|
|
|
+ [weak self] (data) in
|
|
|
+ if self?.presentingViewController != nil {
|
|
|
+ self?.dismiss(animated: false, completion: {
|
|
|
+ kAppDelegate.setTabbarController()
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ kAppDelegate.setTabbarController()
|
|
|
+ }
|
|
|
+ }).disposed(by: disposeBag)
|
|
|
return goButton
|
|
|
}()
|
|
|
|
|
@@ -135,6 +145,7 @@ extension TopicSelectionViewController: UICollectionViewDelegateFlowLayout,UICol
|
|
|
}else {
|
|
|
indexPathDict.removeValue(forKey: indexPath.row)
|
|
|
}
|
|
|
+ collectionView.reloadItems(at: [indexPath])
|
|
|
goButton.isEnabled = indexPathDict.count >= 3 ? true : false
|
|
|
}
|
|
|
|