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

Unknown class GIFImageView in Interface Builder file. #92

@dxshindeo

Description

@dxshindeo

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

Activity

oscarito9410

oscarito9410 commented on May 16, 2020

@oscarito9410

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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @oscarito9410@dxshindeo

        Issue actions

          Unknown class GIFImageView in Interface Builder file. · Issue #92 · swiftgif/SwiftGif