|
|
@@ -15,6 +15,7 @@ public protocol MeetupIdContext { |
|
|
|
var isLoading: MPAK.Recent<Bool> { get } |
|
|
|
var join: Bool { get } |
|
|
|
var textUI: MPAK.Recent<String> { get } |
|
|
|
var testTextUI: MPAK.Many<String> { get } |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: - Controller |
|
|
@@ -39,6 +40,7 @@ extension MeetupId { |
|
|
|
public var isLoading: MPAK.Recent<Bool> = .init(false) |
|
|
|
public var join: Bool = false |
|
|
|
public var textUI: MPAK.Recent<String> = .init("") |
|
|
|
public var testTextUI: MPAK.Many<String> = .init() |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: - Service |
|
|
@@ -142,6 +144,15 @@ extension MeetupId { |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
ctrl.pipeValue( |
|
|
|
dbg: "testTUI", |
|
|
|
sub: nil, |
|
|
|
Bus.events.compactMap { Bus.convertKeyValue(K.testTextUI, $0) }.map { (k: String, v: MPAK.Many<String>) in v }.eraseToAnyPublisher(), |
|
|
|
{ |
|
|
|
$0.testTextUI = $1 |
|
|
|
}, |
|
|
|
{ m, _ in m.testTextUI.keys = [] } |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|