Архитектурный шаблон "Мрак в моделях" на нескольких языках и платформах
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.

26 line
521B

  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. override func viewDidLoad() {
  9. super.viewDidLoad()
  10. view.backgroundColor = .white
  11. Main.Section16Buttons.setupCore(self)
  12. Main.SectionGrid.setupCore(self)
  13. Main.SectionSelection.setupCore(self)
  14. }
  15. @objc func selectButton(_ btn: UIButton) {
  16. didSelectButton.send(btn.tag)
  17. }
  18. }
  19. }