@@ -0,0 +1,5 @@ | |||||
public extension Mic { | |||||
enum K { | |||||
public static let isActive = "Mic.isActive" | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
public enum Mic { } |
@@ -0,0 +1,27 @@ | |||||
import BusX | |||||
import SwiftUI | |||||
extension MicItem { | |||||
public struct V: View { | |||||
@StateObject var isActive = BusUI.Value(Mic.K.isActive, false) | |||||
public init() { | |||||
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { | |||||
Bus.send(Mic.K.isActive, true) | |||||
} | |||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5) { | |||||
Bus.send(Mic.K.isActive, false) | |||||
} | |||||
} | |||||
public var body: some View { | |||||
Text("Mic activity") | |||||
.padding(8) | |||||
.border( | |||||
isActive.v ? Color.black : Color.gray, | |||||
width: isActive.v ? 3 : 1 | |||||
) | |||||
.animation(.easeInOut(duration: 0.3)) | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
public enum MicItem { } |
@@ -0,0 +1,17 @@ | |||||
Pod::Spec.new do |s| | |||||
s.name = 'MicX' | |||||
s.version = '2024.01.15' | |||||
s.license = 'IVCS' | |||||
s.summary = 'Отображение звуковой активности участника' | |||||
s.homepage = 'IVCS' | |||||
s.author = 'IVCS' | |||||
s.source = { :git => 'https://fake.com/FAKE.git', :tag => s.version } | |||||
s.source_files = '**/**/*.{swift,yml}' | |||||
s.swift_version = '5.2' | |||||
s.ios.deployment_target = '14.0' | |||||
s.dependency 'AELog' | |||||
s.dependency 'BusX' | |||||
s.dependency 'MPAKX' | |||||
end |
@@ -6,6 +6,7 @@ pod 'AELog' | |||||
pod 'BusX', :path => '../Modules/BusX' | pod 'BusX', :path => '../Modules/BusX' | ||||
pod 'MeetupIdX', :path => '../Modules/MeetupIdX' | pod 'MeetupIdX', :path => '../Modules/MeetupIdX' | ||||
pod 'MicX', :path => '../Modules/MicX' | |||||
pod 'MPAKX', :path => '../Modules/MPAKX' | pod 'MPAKX', :path => '../Modules/MPAKX' | ||||
target 'pesochnicza' do | target 'pesochnicza' do | ||||
@@ -5,12 +5,17 @@ PODS: | |||||
- AELog | - AELog | ||||
- BusX | - BusX | ||||
- MPAKX | - MPAKX | ||||
- MicX (2024.01.15): | |||||
- AELog | |||||
- BusX | |||||
- MPAKX | |||||
- MPAKX (2023.12.15) | - MPAKX (2023.12.15) | ||||
DEPENDENCIES: | DEPENDENCIES: | ||||
- AELog | - AELog | ||||
- BusX (from `../Modules/BusX`) | - BusX (from `../Modules/BusX`) | ||||
- MeetupIdX (from `../Modules/MeetupIdX`) | - MeetupIdX (from `../Modules/MeetupIdX`) | ||||
- MicX (from `../Modules/MicX`) | |||||
- MPAKX (from `../Modules/MPAKX`) | - MPAKX (from `../Modules/MPAKX`) | ||||
SPEC REPOS: | SPEC REPOS: | ||||
@@ -22,6 +27,8 @@ EXTERNAL SOURCES: | |||||
:path: "../Modules/BusX" | :path: "../Modules/BusX" | ||||
MeetupIdX: | MeetupIdX: | ||||
:path: "../Modules/MeetupIdX" | :path: "../Modules/MeetupIdX" | ||||
MicX: | |||||
:path: "../Modules/MicX" | |||||
MPAKX: | MPAKX: | ||||
:path: "../Modules/MPAKX" | :path: "../Modules/MPAKX" | ||||
@@ -29,8 +36,9 @@ SPEC CHECKSUMS: | |||||
AELog: f732b70f7a9d1b4c6a3676304192b3908f362133 | AELog: f732b70f7a9d1b4c6a3676304192b3908f362133 | ||||
BusX: 1db5cf8652f7b206af468cc115cab3326efd1ced | BusX: 1db5cf8652f7b206af468cc115cab3326efd1ced | ||||
MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308 | MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308 | ||||
MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91 | |||||
MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185 | MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185 | ||||
PODFILE CHECKSUM: ff31073a9b868750f1cfabf6c1c740dbf32d4cb1 | |||||
PODFILE CHECKSUM: 392946a4062b4b9d773ce17e4479d0040d242551 | |||||
COCOAPODS: 1.13.0 | COCOAPODS: 1.13.0 |
@@ -1,4 +1,5 @@ | |||||
import MeetupIdX | import MeetupIdX | ||||
import MicX | |||||
import SwiftUI | import SwiftUI | ||||
import UIKit | import UIKit | ||||
@@ -6,7 +7,7 @@ struct Content: View { | |||||
var body: some View { | var body: some View { | ||||
MeetupId.V() | MeetupId.V() | ||||
Divider() | Divider() | ||||
MeetupId.V() | |||||
MicItem.V() | |||||
} | } | ||||
} | } | ||||