lexrus / LTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.
MIT License
8.07k stars 782 forks source link

Unknown class LTMorphingLabel in Interface Builder file. #112

Closed hbshih closed 4 years ago

hbshih commented 6 years ago

Hi,

Does anyone got the same error message when using this library in Swift 4, iOS 10+?

I got

Unknown class LTMorphingLabel in Interface Builder file.

When running the following code:

import LTMorphingLabel class WelcomePageViewController: UIViewController,LTMorphingLabelDelegate { @IBOutlet weak var welcomeText: LTMorphingLabel! override func viewDidLoad() { super.viewDidLoad() welcomeText.delegate = self welcomeText.morphingEnabled = true welcomeText.morphingDuration = 3.0 welcomeText.morphingEffect = effect } }

Lakr233 commented 5 years ago

Xcode is a forking piece of shiiiit while I'm thinking about code errors. Clean, exit, quiet xcode, reboot, restart. Then you will see something like this: image

Prny0512 commented 5 years ago

Hi,

Does anyone got the same error message when using this library in Swift 4.5, iOS 10.1?

when running the following code: import LTMorphingLabel class { self.lblStart?.text = ""

    if let effect = LTMorphingEffect(rawValue: 4)
    {
        self.lblStart.morphingEffect = effect
        self.lblStart?.text = "START."

        self.lblStart?.morphingEffect = effect
    }

}

error : Unknown class LTMorphingLabel in Interface Builder file.

gmckee1 commented 5 years ago

Make sure that in your Storyboard, you are setting the Module to LTMorphingLabel (image below). This solved the problem for me.

screenshot 2019-01-25 at 21 21 40