carson-katri / swift-request

Declarative HTTP networking, designed for SwiftUI
MIT License
727 stars 41 forks source link

The 'Body' confilct #32

Closed yagamis closed 4 years ago

yagamis commented 4 years ago

Dear carson-katri:

A XCode compile error occored while I added Request 'Body' :

Request { Url(createOrder) Method(.post) Header.ContentType(.json) Body(Json(data).stringified) //Type 'MyCustomSwiftUIView.Body' (aka 'some View') has no member 'init' }

How to fix it? Thanks!

carson-katri commented 4 years ago

Please see my solution here.

I’ll add this type alias to the library itself since this is a common use case/problem.

yagamis commented 4 years ago

You are my savor! !! And I hope the update come soon, can't wait!

An totoaly replace of Alamofire , Request is the ONE!!! 🔥🔥🔥

Thanks for your GREAT WORK again!

carson-katri commented 4 years ago

Thank you! 🙏

carson-katri commented 4 years ago

This has been implemented by #33