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

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

Open
ace18zz opened this issue Aug 31, 2022 · 1 comment

Comments

@ace18zz
Copy link

ace18zz commented Aug 31, 2022

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
Copy link

varxcx commented Sep 5, 2022

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.

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

2 participants