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