Архитектурный шаблон "Мрак в моделях" на нескольких языках и платформах
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 line
564B

  1. import Combine
  2. import UIKit
  3. // MARK: - Ядро-VC
  4. extension Main {
  5. class Core: UIViewController {
  6. let didSelectButton = PassthroughSubject<Int, Never>()
  7. var buttons = [UIButton]()
  8. var subscriptions = [AnyCancellable]()
  9. override func viewDidLoad() {
  10. super.viewDidLoad()
  11. view.backgroundColor = .white
  12. Main.Section16Buttons.setupCore(self)
  13. Main.SectionGrid.setupCore(self)
  14. Main.SectionSelection.setupCore(self)
  15. }
  16. @objc func selectButton(_ btn: UIButton) {
  17. didSelectButton.send(btn.tag)
  18. }
  19. }
  20. }