How can I create an NSDictionary with Kotlin Nativ...
# kotlin-native
k
How can I create an NSDictionary with Kotlin Native? I want to write this code in KN NSDictionary *options = @{(id)kAXTrustedCheckOptionPrompt: @YES};
s
Collection literals and
NSNumber
literals are not implemented yet. To create
NSDictionary
you can create
NSMutableDictionary
and fill it. To create
@YES
object you can use
NSNumber.numberWithBool
method.
👍 1