Михаил Капелько 11 months ago
parent
commit
a0ad8da8df
8 changed files with 63 additions and 2 deletions
  1. +5
    -0
      Modules/MicX/Mic/src/Mic.K.swift
  2. +1
    -0
      Modules/MicX/Mic/src/Mic.swift
  3. +27
    -0
      Modules/MicX/MicItem/src/MicItem.V.swift
  4. +1
    -0
      Modules/MicX/MicItem/src/MicItem.swift
  5. +17
    -0
      Modules/MicX/MicX.podspec
  6. +1
    -0
      app/Podfile
  7. +9
    -1
      app/Podfile.lock
  8. +2
    -1
      src/App.swift

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

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

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

@@ -0,0 +1 @@
public enum Mic { }

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

@@ -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))
}
}
}

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

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

+ 17
- 0
Modules/MicX/MicX.podspec View File

@@ -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

+ 1
- 0
app/Podfile View File

@@ -6,6 +6,7 @@ pod 'AELog'

pod 'BusX', :path => '../Modules/BusX'
pod 'MeetupIdX', :path => '../Modules/MeetupIdX'
pod 'MicX', :path => '../Modules/MicX'
pod 'MPAKX', :path => '../Modules/MPAKX'

target 'pesochnicza' do


+ 9
- 1
app/Podfile.lock View File

@@ -5,12 +5,17 @@ PODS:
- AELog
- BusX
- MPAKX
- MicX (2024.01.15):
- AELog
- BusX
- MPAKX
- MPAKX (2023.12.15)

DEPENDENCIES:
- AELog
- BusX (from `../Modules/BusX`)
- MeetupIdX (from `../Modules/MeetupIdX`)
- MicX (from `../Modules/MicX`)
- MPAKX (from `../Modules/MPAKX`)

SPEC REPOS:
@@ -22,6 +27,8 @@ EXTERNAL SOURCES:
:path: "../Modules/BusX"
MeetupIdX:
:path: "../Modules/MeetupIdX"
MicX:
:path: "../Modules/MicX"
MPAKX:
:path: "../Modules/MPAKX"

@@ -29,8 +36,9 @@ SPEC CHECKSUMS:
AELog: f732b70f7a9d1b4c6a3676304192b3908f362133
BusX: 1db5cf8652f7b206af468cc115cab3326efd1ced
MeetupIdX: 2fa9fb27717aa8878ff495c1abe960c96e524308
MicX: 6ffa81f29a477a66cde277e3ade3de8ce2d47b91
MPAKX: dc592434f55edf34709f6e4f37c9ec90dcd95185

PODFILE CHECKSUM: ff31073a9b868750f1cfabf6c1c740dbf32d4cb1
PODFILE CHECKSUM: 392946a4062b4b9d773ce17e4479d0040d242551

COCOAPODS: 1.13.0

+ 2
- 1
src/App.swift View File

@@ -1,4 +1,5 @@
import MeetupIdX
import MicX
import SwiftUI
import UIKit

@@ -6,7 +7,7 @@ struct Content: View {
var body: some View {
MeetupId.V()
Divider()
MeetupId.V()
MicItem.V()
}
}



Loading…
Cancel
Save