Coder Social home page Coder Social logo

Swift 3 about gifu HOT 12 CLOSED

kaishin avatar kaishin commented on May 28, 2024 2
Swift 3

from gifu.

Comments (12)

kaishin avatar kaishin commented on May 28, 2024 4

I started working on compatibility here but it's still not updated to the final release yet: https://github.com/kaishin/Gifu/tree/swift3 I will try to tackle this this week and finalize the release.

from gifu.

run4jit avatar run4jit commented on May 28, 2024 2

any update when we can get update for swift 3.0

from gifu.

xkenpachi avatar xkenpachi commented on May 28, 2024 1

There is still warnings and errors on my project. For example Animator.swift has error on 42. line

from gifu.

Mosaics avatar Mosaics commented on May 28, 2024

What time support swift3?

from gifu.

kaishin avatar kaishin commented on May 28, 2024

@run4jit The swift3 branch now works with release Swift 3 so feel free to use it for now until the API is finalised. Currently testing performance and memory leaks + backward compatibility.

from gifu.

kaishin avatar kaishin commented on May 28, 2024

Everything seems to be working fine so far on device. Simulator throws some warnings and has some frame issues but I am not worried about that. Tested on a 2013 iPod touch and worked like a charm.
Next is going to be several API changes to make using the library easier and more flexible.

from gifu.

xkenpachi avatar xkenpachi commented on May 28, 2024

Actually i passed that errors but gifs are very speedy, how can i slow them? I have 2 frame gifs

from gifu.

kaishin avatar kaishin commented on May 28, 2024

@xkenpachi If you are still getting errors under 3.0 please let me know. I have fixed all of them as far as I am concerned.

Slowing GIFs is not supported and will not be in the forseeable future. If you have control over the GIF, do that when you export it.

from gifu.

xkenpachi avatar xkenpachi commented on May 28, 2024

@kaishin errors solved, thanks. In swift 2.2 gifs are worked perfectly, i don't think its about gifs because they working normal any html explorer or in finder preview or in xcode preview.

from gifu.

matrosovDev avatar matrosovDev commented on May 28, 2024

I am not sure if I did all rights. But it trows an error and says that method does not override anything

 /// Updates the `image` property of the image view if necessary. This method should not be called manually.
   override open func displayLayer(_ layer: CALayer) {
     image = animator?.currentFrameImage ?? image
   }

from gifu.

xkenpachi avatar xkenpachi commented on May 28, 2024

@matrosovDev you just need the to do like this:

override open func display(_ layer: CALayer) {
image = animator?.currentFrameImage ?? image
}

"displayLayer" name is changed to "display"

from gifu.

kaishin avatar kaishin commented on May 28, 2024

Swift 3 support is now merged into master.

from gifu.

Related Issues (20)

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.