mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 22:06:40 +10:00
hide media when in show animation
This commit is contained in:
@@ -239,7 +239,6 @@ class MediaPreviewView: UIView {
|
||||
self.initialframe = initialframe
|
||||
|
||||
frame = initialframe
|
||||
|
||||
layoutIfNeeded()
|
||||
|
||||
UIView.animateWithDuration(0.25, delay: 0.0, options: .CurveEaseOut, animations: { _ in
|
||||
|
||||
@@ -35,8 +35,14 @@ class MediaView: UIView {
|
||||
coverImageView.image = coverImage
|
||||
coverImageView.alpha = 1
|
||||
bringSubviewToFront(coverImageView)
|
||||
|
||||
scrollView.alpha = 0
|
||||
videoPlayerLayer.opacity = 0
|
||||
|
||||
} else {
|
||||
scrollView.alpha = 1
|
||||
videoPlayerLayer.opacity = 1
|
||||
|
||||
UIView.animateWithDuration(0.05, delay: 0.0, options: .CurveLinear, animations: { _ in
|
||||
self.coverImageView.alpha = 0
|
||||
}, completion: { finished in
|
||||
|
||||
Reference in New Issue
Block a user