So i'm using some libraries and one of the methods, has supposedly return value
let data2 = dataCollector.collectCardFraudData({ ( str:String) in })
But the problem is that the return value is of void type but i could see the value present in it, i've checked a lot of tutorials where they have suggested to change the return type, but since this being a library i don't think i can do that.Is there any other way to get that value converted to string ??
I'm also kinda new Swift, so please any inputs would be helpfull
Thanks
The function has no return value. The Swift equivalent is
So you have to call it with the syntax below.
deviceData
is passed as a parameter and you have to callcompletion
when you're done.