What is the equivalent of swift’s [] in kotlin.
I am trying to use
publicinit?(base64Encoded base64String: String, options: NSData.Base64DecodingOptions = [])
But in kotlin [] converts into ULong.
Is there any way i can achieve the same behaviour of [] from kotlin
h
hfhbd
05/02/2024, 2:17 PM
It’s not related to [], but the optionset uses bitshifting under the hood and to objective c it’s only a unsigned long, mapping to ULong. So in Kotlin you have to shift the bits yourself.