Skip to content

Instantly share code, notes, and snippets.

View ahmdmau's full-sized avatar
🙏
Focusing

Ahmad Maulana ahmdmau

🙏
Focusing
View GitHub Profile
@ahmdmau
ahmdmau / Alamofire+Rx.swift
Created February 16, 2020 15:32 — forked from mminer/Alamofire+Rx.swift
Example of Alamofire RxSwift response serialization extension.
import Alamofire
import RxSwift
extension Request: ReactiveCompatible {}
extension Reactive where Base: DataRequest {
func responseJSON() -> Observable<Any> {
return Observable.create { observer in
let request = self.base.responseJSON { response in