Михаил Капелько 1 year ago
parent
commit
966c7395b0
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      iOS/src/Main.Platform.swift
  2. +1
    -1
      iOS/src/Main.SectionSelection.swift

+ 1
- 0
iOS/src/Main.Platform.swift View File

@@ -7,6 +7,7 @@ extension Main {
class Core: UIViewController { class Core: UIViewController {
let didSelectButton = PassthroughSubject<Int, Never>() let didSelectButton = PassthroughSubject<Int, Never>()
var buttons = [UIButton]() var buttons = [UIButton]()
var subscriptions = [AnyCancellable]()


override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()


+ 1
- 1
iOS/src/Main.SectionSelection.swift View File

@@ -15,7 +15,7 @@ extension Main {
} }


// Выводим номер нажатой кнопки. // Выводим номер нажатой кнопки.
didSelectButton
core.didSelectButton
.sink { i in print("ИГР MainSS.setupC didSB: '\(i)'") } .sink { i in print("ИГР MainSS.setupC didSB: '\(i)'") }
.store(in: &core.subscriptions) .store(in: &core.subscriptions)
} }


Loading…
Cancel
Save