mixi-sb / rxcontroller Goto Github PK
View Code? Open in Web Editor NEWA library for developing iOS app with MVVM-C based on RxFlow and RxSwift.
Home Page: https://cocoapods.org/pods/RxController
License: MIT License
A library for developing iOS app with MVVM-C based on RxFlow and RxSwift.
Home Page: https://cocoapods.org/pods/RxController
License: MIT License
To scan all flows and all view controllers with view model, the class name of the subclasses of RxController and Flow should be searched at first.
RxViewController -> BaseViewController -> ???ViewController
The inputs/outputs model helps to make the data exchanging more standard.
https://github.com/kickstarter/native-docs/blob/master/inputs-outputs.md
All input variables MutableProperty
types that are invoked directly when needed from the view. The input setter function will set its appropriate member variable with the appropriate input parameter.
fileprivate let projectTappedProperty = MutableProperty<Project?>(nil)
public func projectTapped(_ project: Project) {
self.projectTappedProperty.value = project
}
Note that the input variable is named with a Property
suffix to clarify that it is a MutableProperty
. Its function is the name of the action.
If an input value is void, use the following syntax:
fileprivate let viewDidLoadProperty = MutableProperty()
public func viewDidLoad() {
self.viewDidLoadProperty.value = ()
}
All output variables are Signal
types with NoError
as the second error parameter.
public let goToDiscovery: Signal<DiscoveryParams, NoError>
Note that Xcode will display an error on your output until it is instantiated in the view model's init()
. You may set the output to .empty
if you wish to continue without implementing, i.e. for testing purposes.
public let goToDiscovery: Signal<DiscoveryParams, NoError> = .empty
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.