Comments (4)
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.
@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.
@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.
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)
- `didSelectItemPublisher` from collection view only pushes element to latest subscriber HOT 1
- Only last UITextView subscriber receives events HOT 2
- FeatureRequest: Add handlers for selectors HOT 4
- How to use in `UIImagePickerController`
- UICollectionView Crash when using delegate publishers and UICollectionViewDiffableDataSource
- Combine Cocoa fails to archive with Xcode 13 RC HOT 5
- UIScrollView publishers issue in version 0.4.0 HOT 1
- When using UIScrollViewDelegateProxy and UICollectionViewDelegateProxy, one is ignored HOT 1
- Collection view publishers should not have an effect before subscription
- Failed to build a project with latest version
- Memory Leaks in TapPublisher HOT 3
- can't assign Publisher to Button Tapped Publisher HOT 3
- button can not touch up HOT 1
- button can not touchUpInside
- UICollctionView did not work as expected. When I use colltionView to listen to both didScollPublish and didSelectedItemPublisher
- Using private handleEvent API HOT 10
- tableView(_:viewForHeaderInSection:) delegate method cannot be used HOT 2
- `reachedBottomPublisher` offset not working as expected. HOT 1
- Privacy Manifest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combinecocoa.