Giter Site home page Giter Site logo

Comments (4)

ahmedgomaa27 avatar ahmedgomaa27 commented on July 20, 2024

textPublisher emit for all editing events, so it'll emit when you click on the text field, resign responder from and then edit the text, also if you see the implementation, you'll find that in request(_ demand: Demand) function, subscriber call receive method to send the initial value so that it'll emit for the text publisher when you just subscribe on it

from combinecocoa.

vinczebalazs avatar vinczebalazs commented on July 20, 2024

@ahmedgomaa27 Yeah I understand why it's happening, it's just that I would expect a textPublisher to emit when the text changes, should not be releated to other events. Maybe break this up into two different publishers? @freak4pc

from combinecocoa.

ahmedgomaa27 avatar ahmedgomaa27 commented on July 20, 2024

@vinczebalazs you can use controlEventPublisher and get the value from the text field directly , in this case you send the required event for u

from combinecocoa.

freak4pc avatar freak4pc commented on July 20, 2024

Hey @vinczebalazs -
What @ahmedgomaa27 mentioned is correct. The default is tracking all editing events for a text field (copied behavior from RxCocoa here). If you want a specific control event, you can use controlEventPublisher directly, as mentioned above.

from combinecocoa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.