31 questions
0
votes
1
answer
765
views
Invalid update: invalid number of items in section 0 in Reactive Programming issue
I have big trouble because when I selected a cell in my collectionView and change my array Data I got this error message :
'Invalid update: invalid number of items in section 0. The number of items ...
0
votes
0
answers
54
views
how can I create an String array based on another String array whose elements contain textfield.text. Don't know how to filter it in the right way:(
I'm trying to implement searchTextfield to my project, I am using ReactiveKit/Bond. I create a function but don't know how to filter my array elements and create a new array based on searchTextfield....
-1
votes
1
answer
128
views
Return touple by mapping two signals - ReactiveKit
I have two distinct signals:
Signal<A, Error>
Signal<B, Error>
I am trying to map them together to return a signal containing touple of both types as such, using ReactiveKit:
Signal<(A, ...
0
votes
1
answer
2k
views
Combine: can I replace an error with nil?
In the example below, "2" will never be printed, since the error is a completion event, stopping the publisher from sending any more events. That's very clear to me.
import Combine
enum TestError: ...
1
vote
1
answer
2k
views
Wrapping asynchronous code in Swift's Combine publisher
I have a class called QueryObserver that can produce multiple results over time, given back as callbacks (closures). You use it like this:
let observer = QueryObserver<ModelType>(query: query) {...
1
vote
1
answer
462
views
How to turn a standard model class/struct into observable properties?
I am using ReactiveKit with their Bond extension, and I can't really figure out how to do something that feels kind of basic.
Let's say I have a User model in my app. Something like this.
class User:...
1
vote
1
answer
812
views
ReactiveKit: observe an array of signals, do something when they are all completed
I am pretty new to reactive programming, and am using Bond with ReactiveKit in my app. I am now running into a problem that I can't quite figure out.
The problem is that on a certain page I have to ...
0
votes
1
answer
91
views
Swift Bond framework - many to one relationship - trigger a single command if anything changes
Consider the following example:
Given a set of observables:
let value1 = Observable(false)
let value2 = Observable(false)
let value3 = Observable(false)
let isSaveButtonEnabled = Observable(false)
...
1
vote
1
answer
533
views
Swift iOS ReactiveKit: calling the observer causes to trigger action multiple times?
I have Singleton class to which i have used to observe a property and trigger next action.
Singleton Class:
public class BridgeDispatcher: NSObject {
open var shouldRespondToBridgeEvent = ...
2
votes
0
answers
351
views
How to sanitise data with bidirectional binding with Bond
I'm quite new to FRP and decided to get started with Bond and ReactiveKit as it seemed lightweight enough to start gradually applying it to my apps and my head.
I have a setup where I have a view, ...
0
votes
2
answers
1k
views
UITextField resigns first responder right after I call becomeFirstResponder when I use ReactiveKit/Bond
I have a couple of UITextFields in a static tableviewcontroller. I have specified a tag value for each textfield so that when the user clicks next on the keyboard I can get the textfield with the next ...
2
votes
2
answers
615
views
How to bind array count to replace button image
I'm trying to observe array change and bind it to the image of the button.
if the array is empty. set picture of an empty cart.
else set image of a cart.
so what I did was :
let x = itemsArray....
2
votes
0
answers
476
views
Bidirectional Bind to UserDefaults
I am trying to create a bidirectional bind using ReactiveKit/Bond. I am trying to create the bind to the UserDefaults on my View Model, but I am having trouble figuring out how to make that happen. I ...
0
votes
1
answer
193
views
Generic parameter 'A' could not be inferred (Swift 4, Bond and ReactiveKit frameworks migrating from Swift 2)
guys! I'm trying to migrate from Swift 2 to Swift 4. Project is using Bond and ReactiveKit frameworks. I have extension for UISearchBar. So I'm facing a problem migrating from this:
import UIKit
...
1
vote
0
answers
58
views
Type does not conform to protocol QueryableDataSourceProtocol
I'm upgrading from Swift 2.3 to 3.0 (in Xcode 8.2.1), so I've updated the podfile (to no longer restrict the versions of the pods). My project uses Bond ( https://github.com/ReactiveKit/Bond ), and ...