3 ms·
Show HN: Pledge – A Lightweight Reactive Framework for Swift (No Rx Overhead)
- gokulnair2001 1y agoIf you are curious to know about pledge, then check the below links 1. Introduction: https://pledge.framer.website/home/introduction https://pledge.framer.website/home/introduction 2. Performance Test: https://pledge.framer.website/home/performance https://pledge.framer.website/home/performance 3. Docs: https://pledge-gokulnairs-projects.vercel.app/documentation/pledge https://pledge-gokulnairs-projects.vercel.app/documentation/... 4. Mission: https://pledge.framer.website/home/mission https://pledge.framer.website/home/mission
- singpolyma3 1y agoSerious question: isn't this kind of thing already built in to swiftui?
- gokulnair2001 1y agoPledge primarily targets UIKit, where reactive state management isn't built-in and things are messy with the current approaches.
- T3uZr5Fg 1y ago[flagged]
- p0wn 1y agoThis 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 1y agoIt could be nice for Swift on Linux. I don't think Combine is available there
- mayoff 1y agoYou could check out OpenCombine or CombineX. https://github.com/OpenCombine/OpenCombine https://github.com/OpenCombine/OpenCombine https://github.com/cx-org/CombineX https://github.com/cx-org/CombineX
- tarentel 1y agoThis 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.
- deleted 1y ago[deleted]