From c9f18a0e6aa914cbaef27f0b1006bad402565ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Kremser?= Date: Wed, 24 Jan 2018 21:47:23 +0100 Subject: [PATCH] Update DAExpandAnimation.swift --- Xpandr/DAExpandAnimation.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Xpandr/DAExpandAnimation.swift b/Xpandr/DAExpandAnimation.swift index b3bdde2..1929553 100644 --- a/Xpandr/DAExpandAnimation.swift +++ b/Xpandr/DAExpandAnimation.swift @@ -119,6 +119,8 @@ class DAExpandAnimation: NSObject, UIViewControllerAnimatedTransitioning { inView.addSubview(bottomSlidingView!) } + frontView.clipsToBounds = true + // Add the expanding view to the scene. inView.addSubview(frontView) collapsedFrame = backgroundView.convert(collapsedFrame, to: inView)