diff --git a/Modules/MeetupIdX/src/MeetupId.Aux.swift b/Modules/MeetupIdX/src/MeetupId.Aux.swift index 884cfa9..45e3634 100644 --- a/Modules/MeetupIdX/src/MeetupId.Aux.swift +++ b/Modules/MeetupIdX/src/MeetupId.Aux.swift @@ -1,6 +1,11 @@ import Foundation public extension MeetupId { + static func finishLoading(_ isLoading: Bool) -> Bool? { + guard isLoading else { return nil } + return false + } + static func formatId(_ s: String) -> String? { let digits = s.components(separatedBy: NSCharacterSet.decimalDigits.inverted).reduce("") { $0 + $1 } var r = "" diff --git a/Modules/MeetupIdX/src/MeetupId.V.swift b/Modules/MeetupIdX/src/MeetupId.V.swift index 0b58370..a45f41f 100644 --- a/Modules/MeetupIdX/src/MeetupId.V.swift +++ b/Modules/MeetupIdX/src/MeetupId.V.swift @@ -10,7 +10,8 @@ extension MeetupId { @StateObject var textField = Cord.TextField(K.textApp, K.textUI) let processors: [Any] = [ 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() { }