This is a Cheatsheet for RxSwift developers migrating to projects using ReactiveSwift.
Inspired by the RxSwift to Combine cheatsheet
| RxSwift | ReactiveSwift | |
|---|---|---|
| Deployment Target | iOS 8.0+ | iOS 8.0+ |
| AFError.errorCode 0: | |
| createUploadableFailed(error: Error) | |
| AFError.errorCode 1: | |
| createURLRequestFailed(error: Error) | |
| AFError.errorCode 2: | |
| downloadedFileMoveFailed(error: Error, source: URL, destination: URL) | |
| AFError.errorCode 3: |
This is a Cheatsheet for RxSwift developers migrating to projects using ReactiveSwift.
Inspired by the RxSwift to Combine cheatsheet
| RxSwift | ReactiveSwift | |
|---|---|---|
| Deployment Target | iOS 8.0+ | iOS 8.0+ |
| #!/bin/sh | |
| # Generate iPhone Portrait Screenshots from 6+ for app store submission. | |
| # From folder containing 6+ screenshots do: | |
| # ./generate-ios-screenshots.sh *.png | |
| mkdir -p 3.5 | |
| mkdir -p 4.0 | |
| mkdir -p 4.7 | |
| mkdir -p 5.5 |
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import android.app.Activity; | |
| import android.app.Fragment; | |
| import android.app.FragmentManager; | |
| #parse("File Header.java") | |
| public class ${NAME} extends Fragment { | |
| private static final String FRAG_TAG = ${NAME}.class.getCanonicalName(); |
| <!-- You can change the parent around to whatever you normally use --> | |
| <style name="DebugColors" parent="Theme.AppCompat"> | |
| <!-- System colors --> | |
| <item name="android:windowBackground">@color/__debugWindowBackground</item> | |
| <item name="android:colorPressedHighlight">#FF4400</item> | |
| <item name="android:colorLongPressedHighlight">#FF0044</item> | |
| <item name="android:colorFocusedHighlight">#44FF00</item> | |
| <item name="android:colorActivatedHighlight">#00FF44</item> |
| /* | |
| * Copyright (C) 2014 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| if (!MySchema.options.toObject) { | |
| PlanSchema.options.toObject = {}; | |
| } | |
| MySchema.options.toObject.transform = function(doc, ret) { | |
| // Set the id from the retrun object value which will be a string. | |
| ret.id = ret._id; | |
| delete ret._id; | |
| delete ret.__v; |
| /* | |
| * Copyright (C) 2006 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /* | |
| * Copyright 2014 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| var express = require('express') | |
| , formidable = require('formidable') | |
| , fs = require('fs') | |
| , path = require('path') | |
| , app = express() | |
| , storedFiles = []; | |
| // | |
| // Serve the cloud storage contents. | |
| // |