Михаил Капелько 10 månader sedan
förälder
incheckning
3063d0dd54
2 ändrade filer med 7 tillägg och 1 borttagningar
  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 Visa fil

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

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


Laddar…
Avbryt
Spara