Михаил Капелько 10 months ago
parent
commit
3063d0dd54
2 changed files with 7 additions and 1 deletions
  1. +5
    -0
      Modules/MeetupIdX/src/MeetupId.Aux.swift
  2. +2
    -1
      Modules/MeetupIdX/src/MeetupId.V.swift

+ 5
- 0
Modules/MeetupIdX/src/MeetupId.Aux.swift View File

@@ -1,6 +1,11 @@
import Foundation import Foundation


public extension MeetupId { public extension MeetupId {
static func finishLoading(_ isLoading: Bool) -> Bool? {
guard isLoading else { return nil }
return false
}

static func formatId(_ s: String) -> String? { static func formatId(_ s: String) -> String? {
let digits = s.components(separatedBy: NSCharacterSet.decimalDigits.inverted).reduce("") { $0 + $1 } let digits = s.components(separatedBy: NSCharacterSet.decimalDigits.inverted).reduce("") { $0 + $1 }
var r = "" var r = ""


+ 2
- 1
Modules/MeetupIdX/src/MeetupId.V.swift View File

@@ -10,7 +10,8 @@ extension MeetupId {
@StateObject var textField = Cord.TextField(K.textApp, K.textUI) @StateObject var textField = Cord.TextField(K.textApp, K.textUI)
let processors: [Any] = [ let processors: [Any] = [
Bus.Processor(shouldEnableJoin, K.M, K.isJoinAvailable), Bus.Processor(shouldEnableJoin, K.M, K.isJoinAvailable),
MeetupId.Debounce(5, formatId, K.textUI, K.textApp),
MeetupId.Debounce(0.2, formatId, K.textUI, K.textApp),
MeetupId.Delay(5, finishLoading, K.isLoading, K.isLoading),
] ]
public init() { } public init() { }


Loading…
Cancel
Save