Михаил Капелько hace 11 meses
padre
commit
3063d0dd54
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  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 Ver fichero

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


+ 2
- 1
Modules/MeetupIdX/src/MeetupId.V.swift Ver fichero

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


Cargando…
Cancelar
Guardar