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

Index out of range Error when Text is empty before the new text will be added. #109

Open
Skyb0rg opened this issue Mar 17, 2018 · 0 comments

Comments

@Skyb0rg
Copy link

Skyb0rg commented Mar 17, 2018

I got this Error:
Thread 1: Fatal error: Index out of range
Here:

func limboOfNewCharacter(
        _ char: Character,
        index: Int,
        progress: Float) -> LTCharacterLimbo {
            
            let currentRect = newRects[index] <---- here i got : Thread 1: Fatal error: Index out of range
            var currentFontSize = CGFloat(
                LTEasing.easeOutQuint(progress, 0, Float(font.pointSize))

the textlabel was empty (view did load) before i added new text later.

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

1 participant