diff LazyBear/Views/Profile/Networking/Profile.swift @ 404:444ec927d62f

Install Bazooka package
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Thu, 03 Jun 2021 16:05:01 +0200
parents f843c6382529
children 4effac4733b0
line wrap: on
line diff
--- a/LazyBear/Views/Profile/Networking/Profile.swift	Sun May 23 19:00:00 2021 +0200
+++ b/LazyBear/Views/Profile/Networking/Profile.swift	Thu Jun 03 16:05:01 2021 +0200
@@ -6,13 +6,15 @@
 //
 
 import SwiftUI
+import Bazooka
 
 class Profile: ObservableObject {
     @Published var showView = false
     @Published var data = ProfileResponse()
     
     func request(_ url: String, _ requestType: RequestType) {
-        genericRequest(url: url, model: ProfileResponse.self) { response in
+        let bazooka = Bazooka()
+        bazooka.request(url: url, model: ProfileResponse.self) { response in
             switch requestType {
             case .initial:
                 self.data = response