Open ace18zz opened 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) }
}
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.
import UIKit import CLTypingLabel
class ViewController: UIViewController { @IBOutlet weak var titleLable: CLTypingLabel!
}