SwiftyNetworking: A SwiftUI-style approach to building networking layers

I wonder if something like this could be done with the API mimicking the API established by the Network Framework on other platforms, including pre 26 version of Apple platforms.