3

I am doing transition animation using the following block. But I observed that during flip animation a black color layer appears beneath the UIView. Is there any way to set custom color to that layer.

UIView.transitionWithView(ibContainerView, duration: 0.2, options: [.CurveEaseOut,.TransitionFlipFromLeft], animations: {
                self.ibContainerView.addSubview(self.ibInstagramView)

                }, completion:nil)

        }
ankit
  • 3,537
  • 1
  • 16
  • 32

2 Answers2

0

try changing border width and color

self.yourView.layer.borderWidth = 0
self.yourView.layer.borderColor = UIColor.clearColor().CGColor
Rahul Shirphule
  • 989
  • 3
  • 14
  • 36
0

You need to change the background color of the actual ViewController, which holds all these views.

Kashif
  • 4,642
  • 7
  • 44
  • 97