Hi! Are iOS’ nullable `init` s supported? As I can...
# kotlin-native
v
Hi! Are iOS’ nullable
init
s supported? As I can see, Kotlin interop nullable init methods are deprecated in favor of constructors but constructors cannot produce
null
, do they? Am I missing something? For example: https://developer.apple.com/documentation/foundation/nsurl/1413146-init
Nevermind, found proper factory functions in
platform.Foundation.NSURLMeta
class. In this case:
NSURL.URLWithString(URLString = string)
👍 1