I want to darken the background color of a view depending on the position of the view.
I darken the view using a gesture recognizer, when dragging to the right it gets darker by subclassing the UIView and overriding the layoutSubviews method. But if I don't drag all the way the view snaps to the right. In that snapping layoutSubviews doesn't get called.
Is there a solution to respond to each frame of the snapping behavior or something similar?
Thanks.