|
|
@@ -1,13 +1,12 @@ |
|
|
|
import BusX |
|
|
|
import CordX |
|
|
|
import SwiftUI |
|
|
|
|
|
|
|
extension MeetupId { |
|
|
|
public struct V: View { |
|
|
|
@StateObject var isJoinAvailable = Cord.Receive(K.isJoinAvailable, false) |
|
|
|
@StateObject var isLoading = Cord.Receive(K.isLoading, false) |
|
|
|
@StateObject var join = Cord.Button(K.join) |
|
|
|
@StateObject var textField = Cord.TextField(K.textApp, K.textUI) |
|
|
|
@StateObject var isJoinAvailable = BusUI.Value(K.isJoinAvailable, false) |
|
|
|
@StateObject var isLoading = BusUI.Value(K.isLoading, false) |
|
|
|
@StateObject var join = BusUI.Button(K.join) |
|
|
|
@StateObject var textField = BusUI.TextField(K.textApp, K.textUI) |
|
|
|
let processors: [Any] = [ |
|
|
|
Bus.Processor(shouldEnableJoin, K.M, K.isJoinAvailable), |
|
|
|
MeetupId.Debounce(0.2, formatId, K.textUI, K.textApp), |
|
|
@@ -19,7 +18,7 @@ extension MeetupId { |
|
|
|
public var body: some View { |
|
|
|
VStack(spacing: 8) { |
|
|
|
HStack { |
|
|
|
TextField("Binding-3", value: $textField.v, formatter: Cord.TextFieldValueOwner()) |
|
|
|
TextField("Binding-3", value: $textField.v, formatter: BusUI.TextFieldSource()) |
|
|
|
.disabled(isLoading.v) |
|
|
|
.padding(8) |
|
|
|
.border( |
|
|
|