private func setTextWithTypingAnimation(_ typedText: String, _ attributes: Dictionary<NSAttributedString.Key, Any>?, _ charInterval: TimeInterval, _ initial: Bool, _ dispatchID: Int) {
guard typedText.characters.count > 0 && currentDispatchID == dispatchID else {
typingOver = true
typingStopped = false
return
}
guard typingStopped == false else {
stoppedSubstring = typedText
return
}
if initial == true {
super.text = ""
}
let firstCharIndex = typedText.characters.index(typedText.startIndex, offsetBy: 1)
'characters' is unavailable: Please use String directly . I have a problem with this
1.8k Views Asked by Miroslav Georgiev At
3
character is deprecated. You can use string directly like this.