Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Unknown class GIFImageView in Interface Builder file. #92

Open
dxshindeo opened this issue Dec 30, 2019 · 1 comment
Open

Unknown class GIFImageView in Interface Builder file. #92

dxshindeo opened this issue Dec 30, 2019 · 1 comment

Comments

@dxshindeo
Copy link

So in storyboard I have an imageView, did set its class as "GIFImageView".
When running app, the error in title is displayed.

Library installed as pod pod 'SwiftGifOrigin', '~> 1.7.0'

I also did a global search in the project Pods folder, and there are no results for a word "GIFImageView" - the class is not found in the library.

This is what I see:

Screenshot 2019-12-30 at 17 37 28

@oscarito9410
Copy link

oscarito9410 commented May 16, 2020

Hi, I'm not the library's owner, but in my case I created this simple @IBDesignable class as below

import UIKit
import SwiftGifOrigin

@IBDesignable class GifImageView: UIImageView {

    @IBInspectable var imageGif: String = "" {
        didSet {
            sharedInit()
        }
    }

    private func sharedInit() {
        if !imageGif.isEmpty {
            self.loadGif(name: imageGif)
        }
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants