skip to Main Content

Async/Await: "out of range error" when trying to access array filled with downloaded images from firebase storage – Ios swift

I tried to download successfully uploaded images to storage with the code: func retrieveAllPictures(helloid: String) async { //Referenzen zu den Datenbanken let db = Firestore.firestore() //Alle Foto Ids in einem Array speichern let result = try? await db.collection("events").document(helloid).getDocument() allPictureIDs =…

VIEW QUESTION

Xcode – translate POST request to API in PHP to Swift

Hello I'm trying to translate POST request api code written in php: <?php $methodParams = '{ "date_confirmed_from": 1407341754, "get_unconfirmed_orders": false }'; $apiParams = [ "method" => "getOrders", "parameters" => $methodParams ]; $curl = curl_init("https://api.baselinker.com/connector.php"); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_HTTPHEADER, ["X-BLToken:…

VIEW QUESTION
Back To Top
Search