PromiseKit
ReSwift
Our great sponsors
PromiseKit | ReSwift | |
---|---|---|
4 | 6 | |
14,170 | 7,501 | |
- | 0.2% | |
4.4 | 3.4 | |
4 days ago | about 1 month ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PromiseKit
-
DispatchGroup in Swift
The most typical way to solve this problem is by using Combine's Future or PromiseKit's Promise, or by using RxSwift's flatMap. If you're interested on how this works under the hood, I plan to write another article for this case, but for now you can check my code for a simple Promise in this gist, or check this quite old but incredibly mind blowing talk from Javi Soto.
-
How do you escape completion hell?
Besides that, you can use a promise library, like PromiseKit.
ReSwift
-
Is MVVM the only architecture you’ve used when developing iOS app?
ReSwift is also pretty good!
-
Getting Started With Kotlin Multiplatform Mobile
ReduxKotlin There are a few ports of Redux for KMM. This one might be the best because it is thread safe, which is very nice. The only drawback that I don't love about it is that it doesn't have types for sevral aspacts that feel like they should have types. On the other-hand ReKotlin (which is a port of ReSwift) has a lot of the typing that ReduxKotlin is missing, but is missing the thread safety. It just depends on your use-case.
-
I wrote an article about Redux architecture for SwiftUI, you can achieve pretty amazing stuff using it. Below Hot Reload implemented in 30 minutes. More links in comments. It's worth at least getting familiar with this architecture :)
Great article OP! Im sure you've seen it in your travels, but Ive been using ReSwift and ReSwift-Thunk for async actions and I've had great success - Gonna look into your navigation solution as that was the one part I'm still missing!
What are some alternatives?
RxSwift - Reactive Programming in Swift
Katana - Swift Apps in a Swoosh! A modern framework for creating iOS apps, inspired by Redux.
OpenCombine - Open source implementation of Apple's Combine framework for processing values over time.
ReactorKit - A library for reactive and unidirectional Swift applications
BrightFutures - Write great asynchronous code in Swift using futures and promises
Bolts - Bolts is a collection of low-level libraries designed to make developing mobile apps easier.
FutureKit - A Swift based Future/Promises Library for IOS and OS X.
Hydra - ⚡️ Lightweight full-featured Promises, Async & Await Library in Swift
ReactiveCocoa - Cocoa framework and Obj-C dynamism bindings for ReactiveSwift.
RxAlamofire - RxSwift wrapper around the elegant HTTP networking in Swift Alamofire
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.