GithubHelp home page GithubHelp logo

jinsasaki / vulcan Goto Github PK

View Code? Open in Web Editor NEW
292.0 292.0 12.0 3.35 MB

Multi image downloader with priority in Swift

License: MIT License

Swift 77.82% Ruby 3.40% Objective-C 18.77%
carthage cocoapods image swift swift-3 webp

vulcan's People

Contributors

jinsasaki 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vulcan's Issues

Crashes and doesn't load multiple webp images on CATiledLayer

Crashes on file Vulcan.swift line 148
self.dummyView?.removeFromSuperview()
no console error message was show.

All tiles in CATiledLayer are webp images and I'm trying to load them using Vulcan library. Only few tiles are rendered correctly.

load pixel single image

some time singe image appear like pixel image

 let url = URL(string: "https://www.greetingsisland.com/images/invitations/profesional%20events/white%20string%20lights.jpg")!
        imageView.vl.setImage(url: url)

Screen Shot 2019-10-27 at 11 49 37 PM

Failed `carthage build Vulcan` 0.3.0

Vulcan fails Release build by LLVM ERROR. (but succeeds Debug build)

PHI node operands are not the same type as the result!
  %756 = phi %CSo8URLCache* [ %768, %767 ], [ %749, %751 ], !dbg !486
PHI node operands are not the same type as the result!
  %768 = phi %CSo8URLCache* [ %702, %699 ], [ %749, %750 ], !dbg !502
LLVM ERROR: Broken function found, compilation aborted!

Swift Compiler Error

I got a error while running:

Initializer 'init()' is internal and cannot be referenced from a default argument value

public init(cache: ImageCachable? = ImageCache(), configuration: URLSessionConfiguration = URLSessionConfiguration.default) {
        self.cache = cache
        self.configuration = configuration

        self.session = URLSession(configuration: configuration)
        self.configuration.urlCache = URLCache(memoryCapacity: cache?.memoryCapacity ?? 0, diskCapacity: cache?.diskCapacity ?? 0, diskPath: cache?.diskPath ?? nil)

        self.decoder = DefaultImageDecoder()
    }

Swift 4.0,4.1 and 5.0

No disk cache?

It seems that ImageCache's memoryCapacity, diskCapacity and diskPath are only stubs that are never used.

How to clear image cache

How can I clear the image cache?

Vulcan.defaultImageDownloader.cache?.removeAll()

doesn't seem to work.

Thank you,

P

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.