Releases: RxSwiftCommunity/RxAlertViewable
Releases · RxSwiftCommunity/RxAlertViewable
1.2.1
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 ?? "")
}
)
}
1.1
- Support multiple actions for alert
alert.onNextMultiple(
title: "Multiple",
message: "Multiple actions alert",
.destructive(title: "destructive") {
self.alert.onNextTip("destructive")
},
.default(title: "default") {
self.alert.onNextTip("default")
},
.customCancel(title: "customCancel")
)