Quickest start to learn Rxswift
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
I did this project to learn Reactive Programming. In this project, I did email validation and password validation using Rx Swift. If the user enters their email and password properly, they will be able to login.
Here's why:
- To learn RxSwift and reactive programming.
- To take my programming knowledge to the next level. 😄
The frameworks I used in this project are listed below.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
- Xcode 12.x
- Swift 5.x
For Xcode 11 and below, use RxSwift 5.x.
RxSwift doesn't contain any external dependencies.
These are currently the supported installation options:
Open Rx.xcworkspace, choose RxExample
and hit run. This method will build everything and run the sample app
# Podfile
use_frameworks!
target 'YOUR_TARGET_NAME' do
pod 'RxSwift', '6.1.0'
pod 'RxCocoa', '6.1.0'
end
# RxTest and RxBlocking make the most sense in the context of unit/integration tests
target 'YOUR_TESTING_TARGET' do
pod 'RxBlocking', '6.1.0'
pod 'RxTest', '6.1.0'
end
Replace YOUR_TARGET_NAME
and then, in the Podfile
directory, type:
$ pod install
Here's an example |
---|
Email validation ... |
let emailValid = emailTextField .rx .text .orEmpty .throttle(.milliseconds(1000), scheduler: MainScheduler.instance) .map{self.validateEmail(candidate: $0)} .share(replay: 1) |
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/bilaldurnagol/RxSwift-Login-Page