Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsing animation customisation feature #34

Open
mrfonda opened this issue Nov 27, 2017 · 2 comments
Open

Collapsing animation customisation feature #34

mrfonda opened this issue Nov 27, 2017 · 2 comments

Comments

@mrfonda
Copy link

mrfonda commented Nov 27, 2017

Hello! I'm trying to add some additional alpha animation to collapsing annotationViews animation, but it seems CKClusterManagerDelegate doesn't provide proper methods to do this. By using 'clusterManager performAnimations' delegate method I can only manipulate animation code blocks but not the annotations that are going to animate.
I found a workaround for expanding animation simply by animate alpha separately in mapView(_ mapView: MKMapView, didAdd views: [MKAnnotationView]) :
func mapView(_ mapView: MKMapView, didAdd views: [MKAnnotationView]) { views.forEach { (annotation) in annotation.alpha = 0.01 UIView.animate(withDuration: 0.5, animations: { annotation.alpha = 1.0 }) } }
But I can't found a workaround for fade out animation on collapsing.
I need this because I have different shapes of annotationViews and the collapse animation because of that, looks a little bit weird.
Please, add the ability to customise animations.

@ghost
Copy link

ghost commented Mar 9, 2018

Would love to see this as well.
Specifically alpha or scale animations in place of expand/contract coordinate locations.

@aramsargsyan
Copy link

@mrfonda @l2comdev See #80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants