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'}
here is the code if my verif is also async
func verif() async -> Bool { }
@IBAction func ValidButon(_ sender: Any) {
Task { @MainActor in
if await verif() { }
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
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
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
yeah 1 bytes is the print(data) echo utf8_encode($resultArray); is the data i send to my swift. on my android studio application met page php sends data in utf8.
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'}
here is the code if my verif is also async
func verif() async -> Bool { }
@IBAction func ValidButon(_ sender: Any) {
Task { @MainActor in
if await verif() { }
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
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
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
yeah 1 bytes is the print(data) echo utf8_encode($resultArray); is the data i send to my swift. on my android studio application met page php sends data in utf8.