Михаил Капелько 10 miesięcy temu
rodzic
commit
ee57d253bc
4 zmienionych plików z 11 dodań i 4 usunięć
  1. +1
    -1
      Modules/MicX/Mic/src/Mic.K.swift
  2. +2
    -3
      Modules/MicX/MicItem/src/MicItem.V.swift
  3. +6
    -0
      Modules/MicX/MicItem/src/MicItem.WillBe.swift
  4. +2
    -0
      Modules/MicX/MicItem/src/MicItem.swift

+ 1
- 1
Modules/MicX/Mic/src/Mic.K.swift Wyświetl plik

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

+ 2
- 3
Modules/MicX/MicItem/src/MicItem.V.swift Wyświetl plik

@@ -4,15 +4,14 @@ import SwiftUI
extension MicItem {
public struct V: View {
var id: String?
@StateObject var isActive = BusUI.Value(Mic.K.isActive, false)
@StateObject var isActive = BusUI.Value(K.isActive, false)
let ctrl = MicItem.Controller()
let processors: [Any]
public init(_ id: String? = nil) {
self.id = id
self.processors = [
//Bus.Pipe(),
//Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive),
//Bus.Sync(shouldResetActivity, K.MI, K.isActive),
]
}


+ 6
- 0
Modules/MicX/MicItem/src/MicItem.WillBe.swift Wyświetl plik

@@ -16,6 +16,12 @@ extension MicItem {
debugClassName: "MicICtrl",
debugLog: { print($0) }
)


// Нижеследующее предстоит сгенерить.
m
.sink { v in Bus.send(K.MI, v) }
.store(in: &service.subscriptions)
}
}
}

+ 2
- 0
Modules/MicX/MicItem/src/MicItem.swift Wyświetl plik

@@ -1 +1,3 @@
public enum MicItem { }

typealias K = Mic.K

Ładowanie…
Anuluj
Zapisz