Михаил Капелько 10 months ago
parent
commit
3cdc300a49
2 changed files with 5 additions and 8 deletions
  1. +0
    -7
      src/App.swift
  2. +5
    -1
      src/VM.swift

+ 0
- 7
src/App.swift View File

@@ -17,13 +17,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate
window?.backgroundColor = UIColor.white
window?.makeKeyAndVisible()
Bus.process(
MeetupId.K.meetupIdTextUI.rawValue,
MeetupId.K.meetupIdTextApp.rawValue,
MeetupId.shouldFormat
)

return true
}
}

+ 5
- 1
src/VM.swift View File

@@ -3,7 +3,11 @@ import SwiftUI

final class VM: ObservableObject {
@Published var text = "a:"

let format = Bus.Processor(
MeetupId.K.meetupIdTextUI.rawValue,
MeetupId.K.meetupIdTextApp.rawValue,
MeetupId.shouldFormat
)
var subscriptions = [AnyCancellable]()

init() {


Loading…
Cancel
Save