Skip to content

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

Description

@Skyb0rg

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions