Comments (23)
it looks off
from hero.
check #31, might have to do with the zPosition.
from hero.
@JustinM1 it didn't help. could i please Skype with you to show you
from hero.
@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.
@jackpaster Are you still having this problem. I got time today, I can take a look at your problem.
from hero.
Close due to inactivity.
from hero.
@lkzhao Yes I am could you please take a look at it
from hero.
@lkzhao sorry I couldn't talk to you sooner, I was away
from hero.
Can you post a screenshot or upload a example project? Others might be able to benefit if they experiences the same problem.
from hero.
@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.
@lkzhao Thank you so much, I've been struggling with this problem for a month now and I've had no solution
from hero.
from hero.
@lkzhao Thank you
from hero.
@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.
Yea np
from hero.
@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.
from hero.
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.
@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.
from hero.
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.
could you fix it and show me what it would look like
from hero.
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)
- Animation not working for UICollectionViewDiffableDataSource HOT 1
- Request: Make HeroTransition::complete(after: TimeInterval, finishing: Bool) public
- Version 1.6.2 doesn't work with SPM HOT 16
- <Hero/Hero-Swift.h> file not found when I use “ pod 'Hero' ”.
- Animation doesn't work when navigationController pushing screen HOT 4
- OverFullScreen problem HOT 3
- HeroModifiers will fail when a nested `when` modifier exist
- 在tabbar控制器嵌套的navigation控制器中push进子页面,tabbar的显示/隐藏没有任何动画 HOT 2
- hero push animation is unable to turn off
- How do I keep the tabbar is not hidden when push
- Doesn't the demo project work? HOT 2
- Spring Modifier on dismiss view controller Hero.
- hidesBottomBarWhenPushed bug
- Demo cant be run.
- need help, match hero animation across multiple preseting viewcontollers HOT 1
- Default source code, why is there a black area at the top? HOT 2
- Black screen when removing VC
- CI/CD github action needs update to newer env
- Privacy Manifest HOT 1
- Library not loaded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hero.