How do I create an `NSRange` in Kotlin? I can’t f...
# ios
c
How do I create an
NSRange
in Kotlin? I can’t find
init(location: Int, length: Int)
, I can only find a constructor that requires a
kotlinx.cinterop.NativePtr
🤔
I got too used to Swift, I forgot that
NSRange
is not a class, there’s a C function
NSMakeRange
to create one.
👌 1
👍 1