Skip to content

1.2

Compare
Choose a tag to compare
@lm2343635 lm2343635 released this 04 Nov 13:16
· 1 commit to master since this release
c52f546
  • 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 ?? "")
        }
    )
}