
how would I solve this error and it only appears when I import Almofire.
It's Swift.Result<T, Error>, not Swift.Result<T1, T2>. If you want to pass two values, use a tuple, i.e. Swift.Result<([Character], Data), Error> (the tuple can be auto-expanded in a switch/case handling of the result)
Also, Alamofire defines it's own Result<T> type. You should prefix it with Swift. if you want to use the Swift 5 type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With