Comments (7)
This would be most excellent.
from reactiveviewmodel.
π for description.
Most interesting aspect for me - how screen transition performed, who sit above the view-models.
I practicing writing MVVM-like code little more than half of last year, so I want to look how another people will implement it, and have some reliable source for answering: "Why you do this?". :)
from reactiveviewmodel.
On this note, I'd love to see some sample app written MVVM style also!
from reactiveviewmodel.
I would love to see some real-world examples of MVVM in use, as well as how to appropriately test the various components. π from me as well.
from reactiveviewmodel.
If anyone is interested, I have started building a small demo app (https://github.com/DuneParkSoftware/RAC_MVVMDemo) to explore the MVVM pattern with RAC on iOS. I am fairly new to MVVM and RAC. If you check out the code and notice that I'm doing something inefficiently (or just plain wrong), please make a pull request.
So far, I have a singleton object that "does some work" in the background. Meanwhile, a view model watches the singleton's property and converts it for the view controller. The view controller, in turn, updates the display.
There is also a RACCommand
on the view model that is bound to the view, and simulates sending next/error/complete signals based on the singleton's state.
In the past, I have experienced issues with the viewModel not being released when its owning viewController is discarded. Therefore, the code is liberally commented with NSLog
's so I can make sure the viewModel gets dealloc
'd properly and doesn't leak.
I'm not certain that I'm using the RVMViewModel active
property and signals correctly. Also, I don't understand how the forwardSignalWhileActive:
and throttleSignalWhileInactive:
signals are meant to be used.
from reactiveviewmodel.
I've also gone ahead and opened an app that uses this repo: https://github.com/AshFurrow/C-41 Pull requests welcome :)
Not sure how it relates to how you do MVVM, but if it's similar I wouldn't mind writing the documentation for it for this repo. Let me know.
from reactiveviewmodel.
I also have an example project at jspahrsummers/GroceryList.
from reactiveviewmodel.
Related Issues (20)
- didBecomeInactiveSignal should skip:1 HOT 2
- What about ViewModel based routing? HOT 1
- didBecomeInactiveSignal send value before viewDidLoad,is this right? HOT 1
- Feedback on MVVM-ification of an app HOT 3
- Why forwardSignalWhileActive:(RACSignal *)signal subscribes only on the next and error, but not completed? HOT 3
- Add Carthage compatibility badge to the README
- How to build it and use it? HOT 6
- forwardSignalWhileActive as signal operator HOT 1
- retain cycle when using didBecomeActiveSignal HOT 5
- Error Handling in ViewModel HOT 2
- code inside [self.didBecomeActiveSignal subscribeNext:^(id x) {}] not called. HOT 2
- I'd like to know how to setup a ReactiveViewModel with multiple Models? HOT 1
- Using forwardSignalWhileActive to fix KVO performance on iOS 9.
- run error HOT 1
- Old version in cocoapods HOT 5
- δ½ ε₯½ ζ΄ζ°ζ‘ζΆζδ»ΆδΈΊε₯θζ―ζ₯ιδΊοΌ HOT 3
- GitHub API request failed: NetworkError(Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
- new plan to use Swift rewrite this demo HOT 1
- can`t pod install 0.3.3
- compile errors using @keypath syntax
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 reactiveviewmodel.