|
@@ -1,9 +1,11 @@ |
|
|
|
|
|
import Combine |
|
|
import UIKit |
|
|
import UIKit |
|
|
|
|
|
|
|
|
// MARK: - Ядро-VC |
|
|
// MARK: - Ядро-VC |
|
|
|
|
|
|
|
|
extension Main { |
|
|
extension Main { |
|
|
class Core: UIViewController { |
|
|
class Core: UIViewController { |
|
|
|
|
|
let didSelectButton = PassthroughSubject<Int, Never>() |
|
|
var buttons = [UIButton]() |
|
|
var buttons = [UIButton]() |
|
|
|
|
|
|
|
|
override func viewDidLoad() { |
|
|
override func viewDidLoad() { |
|
@@ -13,6 +15,11 @@ extension Main { |
|
|
|
|
|
|
|
|
Main.Section16Buttons.setupCore(self) |
|
|
Main.Section16Buttons.setupCore(self) |
|
|
Main.SectionGrid.setupCore(self) |
|
|
Main.SectionGrid.setupCore(self) |
|
|
|
|
|
Main.SectionSelection.setupCore(self) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@objc func selectButton(_ btn: UIButton) { |
|
|
|
|
|
didSelectButton.send(btn.tag) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |