Code Monkey home page Code Monkey logo

nukedemo's Introduction

nukedemo's People

Contributors

edw4rddx avatar jiahan-wu avatar kean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nukedemo's Issues

Gif Image Height and width

How can i get the gif image height and width and set the table row height according to that.

override func awakeFromNib() {
super.awakeFromNib()

    imageview = GIFImageView()
    imageview.contentMode = .scaleAspectFit
    imageview.clipsToBounds = true
    spinner = UIActivityIndicatorView(style: .medium)
    spinner.color = UIColor.gray
    postimage.addSubview(imageview)
    postimage.addSubview(spinner)
    imageview.pinToSuperview()
    spinner.centerInSuperview()
}

func setImage(with url: URL) {
    let pipeline = ImagePipeline.shared
    let request = ImageRequest(url: url)

    if let image = pipeline.cache[request] {
        return display(image)
    }

    spinner.startAnimating()
    task = pipeline.loadImage(with: request) { [weak self] result in
        self?.spinner.stopAnimating()
        if case let .success(response) = result
        {
            self?.display(response.container)
            self?.animateFadeIn()
        }
    }
}

private func display(_ container: Nuke.ImageContainer) {
    if let data = container.data {
        
        
        imageview.animate(withGIFData: data)
        
    } else {
        imageview.image = container.image
    }
}

private func animateFadeIn() {
    imageview.alpha = 0
    UIView.animate(withDuration: 0.33) { self.imageview.alpha = 1 }
}

override func prepareForReuse() {
    super.prepareForReuse()
    task?.cancel()
    spinner.stopAnimating()
    imageview.image = nil
    imageview.prepareForReuse()
}

Error fetching repository

The demo project doesn't compile when I clone it, I think this is the dealbreaker:

error project: Error while fetching remote repositoryhttps://github.com/kean/ScrollViewPrefetcher: The remote repository could not be accessed. Make sure a valid repository exists at the specified location and that the correct credentials have been supplied.

Current status on video support

What is the current status on .mp4 (H265 / VP9) support?
The demos are 9 months old saying "do not use in production".
On the official website, it states videos are supported.
On the github repository, there is no info at all about video support.

This is all very confusing....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.