How to make a animation like Swipe - ios

How to make a swipe animation like shown in the images. I guess it uses CALayer but not sure.

For the arrow image, you can use UIImage animatedImage(with:duration:)
animatedImageWithDuration
You can provide multiple images and a timespan and the image will animate

Related

Annotation in MKMapView

I want an animated image as annotation in my Mapview in iOS. I tried one gif image with the help of a third party library to animate, but it won't animate but it animate in normal imageview. I also tried animatedImageNamed with the help of 3 images, but it won't work. How can add animation in my annotation. I want a dot with animated layers (layers are appear and disappear). Just like attached image

UIImageView Crossfade Animation Manual Progress

I have an image view I want to have crossfading between two images. There isn't a set time I want this animation to take place, however. I want it to be controlled by a slider where they can slide between viewing the two images and having them crossfade relative to the slider's progress.
My question is, is there a better way to do this than overlaying two UIImageViews and adjusting the alpha property for the top one? Is there a way I can manually set a crossfade animation's progress between two images using one UIImageView?
Thanks!
Try iCarousel which will let you do crossfade animations within a single view.
https://github.com/nicklockwood/iCarousel
iCarousel is a class designed to simplify the implementation of various types of carousel (paged, scrolling views)

UIScrollView Blur Effect

A am using the brilliant StackBlur class with in my project which works fine however I am trying to create a similar effect to the Yahoo Weather App in which the image blurs according to the scroll value. I have managed to achieve it using the scrollViewDidScroll method however the effect is slow and laggy.
What is the best way yo resolve this? Storing the image to the Cache is the only thing I can think of.
Thanks
UPDATE
I simply created two UIImageViews one with the blur and then set the alpha to zero and increased it with the content offset off the scrollview.
You don't need to blur every time when scrollViewDidScroll called. Instead, you need a blurred imageView with the final blur effect and none blurred imageView placed below the blurred one. Change view.alpha of blurred imageView from 0.0 to 1.0 will get this effect without extra cost.
Try DKLiveBlur to show live effect of yahoo blur.

how could I implement such effect of progress bar in iOS

I have customized track image and progress image, the point is I don't want them to be with the same width. But it seems like when I use setTrackImage and setProgressImage, they always keep the same wide. Now my implementation turns out as the first image, but I want the effect just like the second image.
Yes, use UISlider and then remove the thumb image by simply adding an empty image.

create UIIMageView in 3d with cubical shape

I want to create a UIImageView having 4 sides with 4 different images,and if user swipes on visible interface of UIImageView i t should show next face of the cube with different image.
it Should allow left swipe and right swipe.
final image should be like this.can any one suggest me code or any tutorial links to create like this.where should i star..?t
I think you could modify this to work:
https://github.com/augustjoki/CubeTabBarController
It has the animation code in it at least. You could start by altering it to use gestures to trigger the animation.

Resources