CLTypingLabel icon indicating copy to clipboard operation
CLTypingLabel copied to clipboard

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

Open ace18zz opened this issue 1 year ago • 1 comments

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)
    
   
}

}

ace18zz avatar Aug 31 '22 18:08 ace18zz

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.

varxcx avatar Sep 05 '22 04:09 varxcx