cl7 / CLTypingLabel

iOS UILabel with character by character typing /typewriter animation
https://cocoapods.org/pods/CLTypingLabel
MIT License
330 stars 54 forks source link

Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value #27

Open ace18zz opened 2 years ago

ace18zz commented 2 years ago

import UIKit import CLTypingLabel

class ViewController: UIViewController { @IBOutlet weak var titleLable: CLTypingLabel!

override func viewDidLoad() {
    super.viewDidLoad()

    titleLable.text = "Grow Up" (shows this error here :Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value)

}

}

varxcx commented 2 years ago

As it is of type optional.You can check it by holding option key on keyboard. Sol:-You can use optional binding or optional chaining to unwrap the optional.