I was thinking of creating a UiTableView that follows the MVVM pattern (Model-View-ViewModel) to be able to make the table data refresh automatically when there is a change in it, be it a new element, an update or a deletion without having to than refresh the whole table.
I have been doing some research on the subject and have found some libraries like RxSwift or Bond , but I have not found any information that would indicate that this can be done directly without the use of external libraries or that it is contemplated in the Swift documentation. .
I would appreciate if someone can give me a hand in this regard or guide me a bit to get it done, since I have looked a bit at the libraries and how to use them but it is not very intuitive.
There is currently no built-in option in iOS or Swift (neither Foundation nor UIKit) as such for the purposes you seek.
As you already commented, I would personally recommend the following:
Both options have VERY good communities on Slack and Gitter where there is always someone helping out.
On the other hand, if you still wanted to do it on your own, I personally see maybe 2 viable options:
Personally, I would NOT want to use KVO/KVC with Swift as it would force me to create classes that inherit from
NSObject
and lose the flexibility of using Swift's own classes and structs .In short, implementing KVO/KVC or the Observer pattern will take a lot of time. Personally I recommend you take that time to read about Reactive and use the available options that are already mature and stable today.