GithubHelp home page GithubHelp logo

image animation about hero HOT 23 CLOSED

herotransitions avatar herotransitions commented on July 24, 2024
image animation

from hero.

Comments (23)

jackpaster avatar jackpaster commented on July 24, 2024

it looks off

from hero.

JustinM1 avatar JustinM1 commented on July 24, 2024

check #31, might have to do with the zPosition.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@JustinM1 it didn't help. could i please Skype with you to show you

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@JustinM1 I'm using this with dynamic cells, and the animation is not working properly if i set it with dynamic cells. I tried using the basic hero animation from your project in mine, but how would i use hero with dynamic cells

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

@jackpaster Are you still having this problem. I got time today, I can take a look at your problem.

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

Close due to inactivity.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao Yes I am could you please take a look at it

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao sorry I couldn't talk to you sooner, I was away

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

Can you post a screenshot or upload a example project? Others might be able to benefit if they experiences the same problem.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao sure, I'm still away on vacation with my family, and I will have access to my computer tomorrow. Is it fine if I post the example project tomorrow.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao Thank you so much, I've been struggling with this problem for a month now and I've had no solution

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao Thank you

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao I am so sorry, my flight was delayed and I only got back last night. I will send it to you by tonight. I hope I didn't scare you off from helping me. Thanks hope you understand

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

Yea np

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao How should i show it to you. Do you want me to email the project to you or what should I do.

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

Example.zip
Here is my zip file of the project. My Skype is jackpaster22. I would like to sit down with you and have a quick conversation. what I'm looking to do is have a the same animation as the basic view controller you have in your hero. I want to have the image expand the way it does in snapchat. And what I'm looking for is when you hold down on a cell for more than two seconds. The cell shrinks to 4/5 the size its at the way it does on snapchat. You can definitely do both with your project but the project is not working with me. Can you help me and Skype with me please.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

@lkzhao the project is up. Would you like me to take a video about the cell animation of it shrinking and expansion to a detail view controller, to show exactly what I'm talking about.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

Yes, I have. Unfortunately I couldn't skype with you. It is a bit inconvenient.

For the expanding transition, it looks weird because you have multiple views with the same heroID blue inside your table view controller. You should only have one. It should be set during tableView(_:didSelectRowAt:)

For you shrink animation, you have to do some custom UIView animation. There are plenty of tutorials available online, here is one: https://www.raywenderlich.com/2454/uiview-tutorial-for-ios-how-to-use-uiview-animation

I have also noticed some autolayout constraints issues in your TableViewCell2.xib. Ideally you shouldnt have fixed height constraint on cell's subviews. They should be determined by the cell's height.

from hero.

jackpaster avatar jackpaster commented on July 24, 2024

could you fix it and show me what it would look like

from hero.

lkzhao avatar lkzhao commented on July 24, 2024

ExampleTableViewController.swift

    // MARK: - Table view data source
    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "TablesIdentifier", for: indexPath) as! TableViewCell2
      cell.Image2.heroID = "\(indexPath.item)"
      return cell
    }
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        let controller = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "yes23") as! ViewController2
        controller.view.heroID = "\(indexPath.item)"
        present(controller, animated: true, completion: nil)
    }

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.