Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash #5

Closed
dsngeu opened this issue Dec 1, 2018 · 2 comments
Closed

Crash #5

dsngeu opened this issue Dec 1, 2018 · 2 comments

Comments

@dsngeu
Copy link

dsngeu commented Dec 1, 2018

step 1 - open keyboard
step 2 - tap on suggested words
step 3 - tap on send button and clear textview text
step 4 - type new word --> crash

Crash At:
for rag in arrRange.reversed() {
newString.insert(contentsOf: tagPostfix, at: rag.upperBound) // Crash line
newString.insert(contentsOf: tagPrefix, at: rag.lowerBound)
}

@dsngeu
Copy link
Author

dsngeu commented Dec 1, 2018

Crash has been resolved on send button tap call clearTagTextView()

private func clearTagTextView() {

    txtMain.text = ""
    txtMain.arrTags = []
    arrTagedUser.removeAll()
    txtMain.arrRange = []
}

@Datt1994
Copy link
Owner

Datt1994 commented Dec 3, 2018

@dsngeu Check updated repo.

@Datt1994 Datt1994 closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants