Let notification open domain
This commit is contained in:
@@ -49,7 +49,7 @@ class VCAnalysisBar: UIViewController, UITabBarDelegate {
|
||||
|
||||
private func openCoOccurrence() {
|
||||
guard let delegate = parent as? AnalysisBarDelegate,
|
||||
let vc = storyboard?.instantiateViewController(withIdentifier: "IBCoOccurrence") as? VCCoOccurrence else {
|
||||
let vc: VCCoOccurrence = storyboard?.load("IBCoOccurrence") else {
|
||||
return
|
||||
}
|
||||
let info = delegate.analysisBarWillOpenCoOccurrence()
|
||||
|
||||
@@ -25,11 +25,20 @@ class TVCDomains: UITableViewController, UISearchBarDelegate, GroupedDomainDataS
|
||||
}
|
||||
}
|
||||
|
||||
func pushOpen(domain: String) {
|
||||
let A: TVCHosts = storyboard!.load("requestsHosts")
|
||||
let B: TVCHostDetails = storyboard!.load("requestsOccurrences")
|
||||
A.parentDomain = domain.extractDomain()
|
||||
B.fullDomain = domain
|
||||
navigationController?.pushViewController(A, animated: false)
|
||||
navigationController?.pushViewController(B, animated: false)
|
||||
}
|
||||
|
||||
|
||||
// MARK: - Filter
|
||||
|
||||
@IBAction private func filterButtonTapped(_ sender: UIBarButtonItem) {
|
||||
let vc = self.storyboard!.instantiateViewController(withIdentifier: "domainFilter")
|
||||
let vc = storyboard!.load("domainFilter")
|
||||
vc.modalPresentationStyle = .custom
|
||||
if #available(iOS 13.0, *) {
|
||||
vc.isModalInPresentation = true
|
||||
|
||||
Reference in New Issue
Block a user