@alexhillc A feature request regarding the caption text animation during the swipe left / right.
Right now, the caption text (title, description and credit) are animating when going from one photo to another. This is a kind of un-natural (fading in and out) especially when the list of photos share the same description.
One suggestion is to have a flag which we can set to enable the caption text animation during the swipe action. e.g.
// should be a public property
let animateCaptionDuringSwipe = false.
if animateCaptionDuringSwipe {
self.isCaptionAnimatingOut = true
UIView.animate(withDuration: Constants.frameAnimDuration / 2,
delay: 0,
options: [.beginFromCurrentState, .curveEaseOut],
animations: animateOut) { [weak self] (finished) in
guard let uSelf = self, !uSelf.isCaptionAnimatingIn else {
return
}
animateOutCompletion(finished)
UIView.animate(withDuration: Constants.frameAnimDuration / 2,
delay: 0,
options: [.beginFromCurrentState, .curveEaseIn],
animations: animateIn,
completion: animateInCompletion)
}
} else {
animateOutCompletion(true)
}
@alexhillc A feature request regarding the caption text animation during the swipe left / right. Right now, the caption text (title, description and credit) are animating when going from one photo to another. This is a kind of un-natural (fading in and out) especially when the list of photos share the same description. One suggestion is to have a flag which we can set to enable the caption text animation during the swipe action. e.g.