Giter VIP home page Giter VIP logo

Comments (12)

lkzhao avatar lkzhao commented on May 22, 2024 1

0.1.4 is out now. You can use the new .useNormalSnapshot modifier to request a normal snapshot instead of the optimized one.

from hero.

lkzhao avatar lkzhao commented on May 22, 2024

Try import Hero to your file.

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

Well yes it works programatically but not as IBInspectable

from hero.

lkzhao avatar lkzhao commented on May 22, 2024

Weird. It should appear. The example project also uses heroID in storyboard on UIImageView.

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

The UIImageView I'm using is a custom subclass with a bunch (lots) of IBInspectable, it seems to me like XCode can only display a certain amount of Inspectables and drops the others ...

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

But while I'm at it, another question / issue... that UIImageView Subclass I'm using gives me the ability to define a circular mask. When Hero animates the transition between the two UIImageViews with Circular mask, Hero seems to drop the mask for a fraction of a second and displays the image in a square frame... Ultimately the image is displayed correctly with that circular mask, but just during the transition it reverts to its square state ...

Any idea how I can overcome this behavior?

from hero.

lkzhao avatar lkzhao commented on May 22, 2024

@Cre8it It is because Hero does an optimization with UIImageView. Instead of taking a snapshot, it just uses a regular UIImageView when it sees a UIImageView being animated. This provide smoother animation & works great with a default UIImageView, but doesn't support subclass or masking. I will have a new modifier in the next version to disable this level of optimization for a specific view.

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

Thank you for the detailed explanation. any idea when this next release will be available, or how I could circumvent this problem for now, even if I have to adapt something in the library?

from hero.

lkzhao avatar lkzhao commented on May 22, 2024

Should be out soon. Either today or tmr.

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

That's awesome!

from hero.

lkzhao avatar lkzhao commented on May 22, 2024

@Cre8it Let me know how it goes.

from hero.

DonBaronFactory avatar DonBaronFactory commented on May 22, 2024

Absolutely amazing @lkzhao, just updated, implemented the modifier and it works perfectly. Your library is worth gold and makes app development even more compelling ;)

Your support is definitely A class as well, thank you

from hero.

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.