|
|
@@ -6,24 +6,25 @@ extension MeetupId { |
|
|
|
public struct V: View { |
|
|
|
@StateObject var fmt = MeetupId.Formatter(K.textUI, K.textApp) |
|
|
|
@StateObject var isJA = Cord.Receive(K.isJoinAvailable, false) |
|
|
|
@StateObject var isL = Cord.Receive(K.isLoading, false) |
|
|
|
@StateObject var join = Cord.Button(K.join) |
|
|
|
@StateObject var txtF = Cord.TextField(K.textApp, K.textUI) |
|
|
|
let joinA = Bus.Processor(shouldEnableJoin, K.M, K.isJoinAvailable) |
|
|
|
let pSEJ = Bus.Processor(shouldEnableJoin, K.M, K.isJoinAvailable) |
|
|
|
let pSRL = Bus.Processor(shouldResetLoading, K.M, K.isLoading) |
|
|
|
|
|
|
|
public init() { } |
|
|
|
|
|
|
|
public var body: some View { |
|
|
|
VStack { |
|
|
|
HStack { |
|
|
|
Text("Check text field:") |
|
|
|
Text("'\(txtF.value)'") |
|
|
|
.fontWeight(.bold) |
|
|
|
TextField("Binding-3", value: $txtF.value, formatter: Cord.TextFieldValueOwner()) |
|
|
|
.padding(8) |
|
|
|
.border(Color.blue, width: 2) |
|
|
|
if isL.value { |
|
|
|
ProgressView() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
TextField("Binding-3", value: $txtF.value, formatter: Cord.TextFieldValueOwner()) |
|
|
|
.padding(8) |
|
|
|
.border(Color.blue, width: 2) |
|
|
|
|
|
|
|
Button(action: join.press.send) { |
|
|
|
Text("Join") |
|
|
|
.padding(8) |
|
|
|