We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now in app, when showing alert with "Are you sure you want to delete this post?", when select "No" Post deleted :-( How to fix this problem? @sergdort
let deleteTrigger = deleteButton.rx.tap.flatMap { return Observable<Void>.create { observer in let alert = UIAlertController(title: "Delete Post", message: "Are you sure you want to delete this post?", preferredStyle: .alert ) let yesAction = UIAlertAction(title: "Yes", style: .destructive, handler: { _ -> () in observer.onNext(()) }) let noAction = UIAlertAction(title: "No", style: .cancel, handler: { _ -> () in observer.onNext(()) }) alert.addAction(yesAction) alert.addAction(noAction) self.present(alert, animated: true, completion: nil) return Disposables.create() } } let input = EditPostViewModel.Input( editTrigger: editButton.rx.tap.asDriver(), deleteTrigger: deleteTrigger.asDriverOnErrorJustComplete(), title: titleTextField.rx.text.orEmpty.asDriver(), details: detailsTextView.rx.text.orEmpty.asDriver() )
The text was updated successfully, but these errors were encountered:
Fix no delete action
bae0423
sergdort#61
bfe1131
fb5dda5
sergdort/CleanArchitectureRxSwift#61
16d5fd1
No branches or pull requests
Now in app, when showing alert with "Are you sure you want to delete this post?", when select "No" Post deleted :-( How to fix this problem? @sergdort
The text was updated successfully, but these errors were encountered: