dpstart
dpstart

Reputation: 1088

Adding parallax effect to image

This is the situation: enter image description here

I got the two image view on top of the view, and on the bottom is a container view (the one with the segmented control) that can be dragged upward.

Now, is there a way to add a parallax effect to the background image (the one with the blur) as I drag the container upward?

Upvotes: 0

Views: 856

Answers (1)

Gagan_iOS
Gagan_iOS

Reputation: 4060

A I can see you are working on iOS 9 so you can use InterploationMotionEffect available from iOS 8. I have also created example for the same ParallaxEffectExample

Example is in swift & having two example set. First one as manual & second one using InterploationMotionEffect in UITableView.

Upvotes: 1

Related Questions