Questions tagged [reactivekit]

ReactiveKit is a lightweight Swift framework for reactive and functional reactive programming.

ReactiveKit is a lightweight Swift framework for reactive and functional reactive programming. https://github.com/DeclarativeHub/ReactiveKit

32 questions
1
vote
1 answer

ReactiveKit migration from v4.x to v5.x

I'm trying to migrate my project to Swift 3. I am using ReactiveKit and Bond and I am struggling with some conversions. 1) Most of my extensions used to look like this: extension UIView { public var bnd_superview: Observable { return…
Or Chen
  • 33
  • 4
1
vote
1 answer

Fire a method periodically using Bond

I'm using the ReactiveKit's Bond library in my project for the first time and trying to get the hang of it. In my app, there's a textview. And as the user types in it, an API call needs to fire at three stages. As soon as the first character is…
Isuru
  • 30,617
  • 60
  • 187
  • 303
1
vote
1 answer

Bond/ReactiveKit - Temporarily suspend observing events and start observing again (but see events that were missed)

I'm starting to use Bond to implement a basic MVVM pattern in an app and have a scenario where I would like to temporarily suspend the observing of events on an Observable (via a flag). I would then like to resume the observing of events, but also…
1
vote
1 answer

How To Bind An Array Of Custom Objects Using Swift 3, ReativeKit, and Bond

Background I have an IOS application that can receive a real-time stream of data. I have implemented custom value objects to store/capture this data from a live stream. I now need to bind my custom data objects to the UI (mostly use tableviews and…
Cameron
  • 11
  • 1
  • 3
1
vote
1 answer

How to model Action in ReactiveKit?

So here's my use case: I have an async task wrapped in a Signal that effectively executes once, and is no longer relevant (one-shot, essentially). I'd like to observe or bind the output of this to a text field in my UI, but I can't…
Tony Arnold
  • 2,738
  • 1
  • 23
  • 34
1
vote
1 answer

Swift Bond 5 migrating from 4 bidirectional

I'm trying to switch to Swift Bond 5 and Swift 3 in one of my projects. I'm having problem with two direction binding. How can I convert the code below so when my slider is changing it emits distinct signal in steps and set it's value then to the…
Marcin Kapusta
  • 5,076
  • 3
  • 38
  • 55
0
votes
0 answers

Use SwiftBond (ReactiveKit) with Codable Struct?

I'm trying to make my Codable model work with ReactiveKit/Bond. I believe I need to conform to the PropertyProtocol and set my properties as Property types, but decoding fails. If I set var x: String decoding doesn't fail. What I've tried: import…
0
votes
1 answer

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 contained in an existing section after the update…
0
votes
0 answers

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.text text. var myArray =…
Artem
  • 1
0
votes
1 answer

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: Error { case ohnoes } let publisher =…
Kevin Renskers
  • 5,156
  • 4
  • 47
  • 95
0
votes
1 answer

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) I'd like to execute this code every time something…
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
0
votes
2 answers

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 tag and call becomesFirstResponder so that the…
0
votes
1 answer

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 import Bond import ReactiveKit public extension…
Oleh Veheria
  • 412
  • 5
  • 13
0
votes
1 answer

ReactiveKit Subject "unobserveNext" Method?

ReactiveKit documentation says: How do we use such subject? let name = Subject() name.observeNext { name in print("Hi (name)!") } Is there kind of "unobserveNext" Method?
Dorad
  • 3,413
  • 2
  • 44
  • 71
0
votes
1 answer

How to set title of Button using ReactiveKit Bond?

Is there an equivalent of rac_liftSelector in Reactivekit to implement selector for setTitle?
Abhilash
  • 121
  • 1
  • 7