Questions tagged [swiftbond]
28 questions
4
votes
3 answers
What is the best way to connect Realm and SwiftBond
I love Realm and I love Bond. Both of them makes app creation a joy. So I was wondering what is the best way to connect Realm and Bond? In Realm we can store basic types such as Int, String, e.g. But in Bond we work with Dynamics and Bonds. The…

Nikita Arkhipov
- 1,208
- 4
- 11
- 28
3
votes
2 answers
How can I add sections to my UITableViewCell?
How can I add sections to my UITableViewCell with the Bond framework?
self.viewModel.items.bind(to: self.tableView) { (item, indexPath, tableView) -> UITableViewCell in
let cell = tableView.dequeueReusableCell(withIdentifier:…

KNK
- 59
- 7
2
votes
0 answers
Is it possible to bind to enums with Bond/ReactiveKit? Swift
I am trying to understand Bond, so I made a test project.
Here I am using a class chocolate
class Chocolate {
var brandname: String = ""
var type: ChocolateType = .crunchy
}
and a enum ChocolateType with rawValues
enum ChocolateType:…

Celina
- 513
- 4
- 21
2
votes
0 answers
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 tried using reactive with the keyPath that…

Olyve
- 701
- 1
- 8
- 27
2
votes
1 answer
ReactiveKit Bond KVO observe UserDefaults
I was previously using RxSwift and I decided I did not want to use it anymore and was able to convert everything over to Bond which I am much more familiar with. Since the new changes though to Bond v5, I cannot seem to figure out how to observe…

Olyve
- 701
- 1
- 8
- 27
1
vote
0 answers
observeNext called more than once after insert element to MutableObservableArray in Bond Swift Framework
I have a MutableObservableArray object which has a binding with observeNext function of Bond framework. At the first opening of the app, I fetch array from user defaults and insert it to this empty array.
My problem is that after I insert element to…

Emre Önder
- 2,408
- 2
- 23
- 73
1
vote
0 answers
Swift Bond bidirectionalBind Generic parameter 'B' could not be inferred
I'm getting an error: Generic parameter 'B' could not be inferred when trying to do a Bond bidirectionalBind with a non optional string and a UITextField. With a optional string it works fine.
Below is some example Swift Code that demonstrates this…

Charlie Fish
- 18,491
- 19
- 86
- 179
1
vote
0 answers
Implementing UITableView search with UISearchBar using Bond MVVM bindings
I'm trying to implement a search bar in my tableview, I'm using Swift Bond to populate the data in my table. Anyone know how to filter the data correctly with Bond?
I'm using the MVVM architecture. I'm doing all my binding in a method being called…

superbad09
- 11
- 2
1
vote
0 answers
How do you bind MutableObservableArray to UILabel visibility?
I would like to bind the count attribute of a MutableObservableArray to a UILabel, so that the label is visible when count = 0 but I can't find any relevant examples or info. In other words, I want a label with the text "No Contents" to be visible…

Melodius
- 2,505
- 3
- 22
- 37
1
vote
0 answers
Connecting Realm with Swift Bond
I have read the following question on Stack Overflow (What is the best way to connect Realm and SwiftBond), which is unfortunately 2 years old. I am in the same position where I would like to create an observable instance of a Realm object, whereby…

Shane Henderson
- 11
- 1
1
vote
1 answer
Computed Observable In ReactiveKit/Bond
Is there some kind of Computed Observable in ReactiveKit Or Bond?
Does initializing an Observable with a native Swift computed property will act the same?

Dorad
- 3,413
- 2
- 44
- 71
1
vote
0 answers
How to create textfield with limited amount of symbols to input
I'm trying to make a code verification screen. You probably saw it in every app, that requires phone or SMS verification.
The main concern for me is how to set limited available characters for the user to type in the text field.
I'm using reactive…

dand1
- 371
- 2
- 8
- 22
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
How to use UITableview data source and delegates with SwiftBond?
I am using SwiftBond to bind tableview. I want to have index list in my tableview but i have no idea of how to implement it.
I want to use few more data source methods of tableview but i am not having exact idea of the correct way to do it.
Any help…

Alap Anerao
- 2,083
- 22
- 27