ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.37k stars 4.17k forks source link

RXCocoa on contextMenuConfigurationForRowAt method #2547

Closed confusionhill closed 1 year ago

confusionhill commented 1 year ago

Hello, I wanted to use RxSwift and RxCocoa ona simple tableview app. It's currently using apple newest Tableview delegate API func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? and I wanted to use RxCocoa. Are there any available API that I can use to integrate RxSwift to that new method? Thank you

Expected outcome:

what you expect to happen goes here

What actually happens:

what actually happens goes here

Self contained code example that reproduces the issue:

  code goes here

// If we can't get a self contained code example that reproduces the issue, there is a big chance we won't be able
// to help you because there is not much we can do.
//
// `Self contained code example` means:
//
// * that we should be able to just run the provided code without changing it.
// * that it will reproduce the issue upon running

RxSwift/RxCocoa/RxBlocking/RxTest version/commit

version or commit here

Platform/Environment

How easy is to reproduce? (chances of successful reproduce after running the self contained code)

Xcode version:

  Xcode version goes here

:warning: Fields below are optional for general issues or in case those questions aren't related to your issue, but filling them out will increase the chances of getting your issue resolved. :warning:

Installation method:

I have multiple versions of Xcode installed: (so we can know if this is a potential cause of your issue)

Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)

danielt1263 commented 1 year ago

This is very much a question that should be asked on the RxSwift slack channel.

That said, this article has what you need: How to Convert a Swift Delegate to an RxSwift Observable

freak4pc commented 1 year ago

Agree with Daniel.