Михаил Капелько 10 maanden geleden
bovenliggende
commit
76cef40423
3 gewijzigde bestanden met toevoegingen van 12 en 3 verwijderingen
  1. +2
    -1
      Modules/MicX/Mic/src/Mic.K.swift
  2. +2
    -1
      Modules/MicX/MicItem/src/MicItem.V.swift
  3. +8
    -1
      src/App.swift

+ 2
- 1
Modules/MicX/Mic/src/Mic.K.swift Bestand weergeven

@@ -1,6 +1,7 @@
public extension Mic {
enum K {
public static let activityDate = "Mic.activityDate"
public static let isActive = "Mic.isActive"
public static let MI = "Mic.ModelItem"
public static let itemM = "Mic.Item.Model"
}
}

+ 2
- 1
Modules/MicX/MicItem/src/MicItem.V.swift Bestand weergeven

@@ -10,7 +10,8 @@ extension MicItem {
public init(_ id: String? = nil) {
self.id = id
self.processors = [
Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive),
//Bus.Pipe(),
//Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive),
]
}


+ 8
- 1
src/App.swift Bestand weergeven

@@ -31,7 +31,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate
window?.makeKeyAndVisible()

/**/print("ИГР App.didFLWO")
testMic1()
//testMic1()
testMic2()
return true
}
@@ -43,4 +44,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate
Bus.send(Mic.K.isActive, false)
}
}

func testMic2() {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
Bus.send(Mic.K.activityDate, Date() + 5)
}
}
}

Laden…
Annuleren
Opslaan