Show HN: Pledge – A Lightweight Reactive Framework for Swift (No Rx Overhead)

28 gokulnair2001 7 4/10/2025, 7:33:54 AM github.com ↗

Comments (7)

gokulnair2001 · 20d ago
tarentel · 20d ago
This seems like the subject part of RxSwift/Combine without any of the useful parts. For example, the networking example requires an explicit property whereas the code I would use for something like this would be to return an Observable directly. For most use cases, you don't have to handle state separately. Basically, this seems more complicated than using something like callbacks with this only having some very edge case benefits to that.
p0wn · 20d ago
This is a good exercise but how is this better than Combine?

Also - I've seen ultra over complicated codebases made with FRP in Swift. I have some PTSD from the kickstarter MVVM approach. What a nightmare in practice. You have to be all in - everything FRP or the tightly bound system crumbles.

I think SwiftUI's @Published property wrapper elegantly hid the FRP, but even Apple is moving away from FRP with the macro based Observable framework.

zffr · 20d ago
It could be nice for Swift on Linux. I don't think Combine is available there
mayoff · 20d ago
singpolyma3 · 20d ago
Serious question: isn't this kind of thing already built in to swiftui?
gokulnair2001 · 20d ago
Pledge primarily targets UIKit, where reactive state management isn't built-in and things are messy with the current approaches.