Post

Replies

Boosts

Views

Activity

Comment on how can i make my async func wait
between my print it pass throught i have also that : 2022-12-23 15:36:19.966449+0100 App[2115:36149] [Client] {"msg":"#NullIsland Received a latitude or longitude from getLocationForBundleID that was exactly zero", "latIsZero":0, "lonIsZero":0, "location":'80 76 DD 0D 03 00 00 00'}
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Comment on how can i make my async func wait
I managed to put the task on my button and change my function to async but when I call it : ""'async' call in a function that does not support concurrency"" i try to fix it and i put a task when i call task { await getLatLongFromAddress(withAddress : address1) { (lat,long) in } it didn't work and another to fix it was to put my verif asynchronous so i did that but is still didn't work
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Comment on cancel the async and make it run normally
to be more precise I need to getlat (and getLong) to be able to compare the distance between 2 cities and if the distance is more than a certain number of kilometers I have to return false. what is the most optimal choice to do this? because even if i do all my stuff in need to return my bool at the end. and if do a async wait its my function getLat becoming a async wait or is the other function
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Comment on can't complete my collection View
okay thx you i fix my problem but still got another one : ` The imageSliderHomeClient outlet from the HomeClient to the UIImageView is invalid. Outlets cannot be connected to repeating content.' i search on different post but everytime they talk about this problem is about a tablayout
Topic: Programming Languages SubTopic: Swift Tags:
Nov ’22