Проверка шаблона шины для iOS
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.

11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
11 月之前
123456789101112131415161718192021222324252627282930313233343536
  1. import Combine
  2. import SwiftUI
  3. final class VM: ObservableObject {
  4. /*
  5. @Published var text = "a:"
  6. let format = Bus.Processor(
  7. MeetupId.K.meetupIdTextUI.rawValue,
  8. MeetupId.K.meetupIdTextApp.rawValue,
  9. MeetupId.onlyFormat
  10. )
  11. */
  12. var isJoinAvailable = false
  13. var subscriptions = [AnyCancellable]()
  14. init() {
  15. /*
  16. Bus.send(
  17. MeetupId.K.meetupIdTextUI.rawValue,
  18. $text
  19. // Исключаем конфликты от UI и App путём игнорирования спама.
  20. .debounce(for: .seconds(0.3), scheduler: DispatchQueue.main)
  21. .compactMap(onlyUIText)
  22. .eraseToAnyPublisher(),
  23. sub: &subscriptions
  24. )
  25. Bus.receive(
  26. [MeetupId.K.meetupIdTextApp.rawValue],
  27. { [weak self] (_, v: String) in self?.text = "a:\(v)" },
  28. opt: [.async],
  29. sub: &subscriptions
  30. )
  31. */
  32. }
  33. }