Михаил Капелько 10 months ago
parent
commit
061548b8b4
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      Modules/MicX/Mic/src/Mic.K.swift
  2. +4
    -0
      Modules/MicX/MicItem/src/MicItem.V.swift

+ 1
- 0
Modules/MicX/Mic/src/Mic.K.swift View File

@@ -1,5 +1,6 @@
public extension Mic { public extension Mic {
enum K { enum K {
public static let isActive = "Mic.isActive" public static let isActive = "Mic.isActive"
public static let MI = "Mic.ModelItem"
} }
} }

+ 4
- 0
Modules/MicX/MicItem/src/MicItem.V.swift View File

@@ -5,9 +5,13 @@ extension MicItem {
public struct V: View { public struct V: View {
var id: String? var id: String?
@StateObject var isActive = BusUI.Value(Mic.K.isActive, false) @StateObject var isActive = BusUI.Value(Mic.K.isActive, false)
let processors: [Any]
public init(_ id: String? = nil) { public init(_ id: String? = nil) {
self.id = id self.id = id
self.processors = [
Bus.Sync(shouldResetActivity, Mic.K.MI, Mic.K.isActive),
]
} }
public var body: some View { public var body: some View {


Loading…
Cancel
Save