An Unresolved reference 'insert' in iOS land on the calls to String.insert( char, at: position) #190
Answered
by
marcprux
davidakoontz
asked this question in
Q&A
-
The call to insert a character inside a String is basic Swift... Why would this not behave? What could I be doing wrong now? https://developer.apple.com/documentation/swift/string/insert(_:at:)-1uqvy |
Beta Was this translation helpful? Give feedback.
Answered by
marcprux
Aug 16, 2024
Replies: 1 comment
-
As mentioned in the SkipLib reference at https://skip.tools/docs/modules/skip-lib/#swift-standard-library-support, Kotlin strings are not mutable, and so we cannot support functions like
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
marcprux
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As mentioned in the SkipLib reference at https://skip.tools/docs/modules/skip-lib/#swift-standard-library-support, Kotlin strings are not mutable, and so we cannot support functions like
insert
. The workaround is to do something like: