1.2
- Support text inputs
private let textSubject = BehaviorRelay<String?>(value: nil)
func showInputAlertView() {
alert.onNextTip(
"My Input AlertView",
inputs: [
RxAlertInput(
placeholder: "My placeholder",
text: "My text",
textAlignment: .center,
onTextChanged: RxAlertInput.OnTextChanged(
text: textSubject,
disposeBag: self.disposeBag
)
)
],
onConfirm: {
self.alert.onNextTip(self.textSubject.value ?? "")
}
)
}