```
 @objc class SearchViewController: UIViewController {

     var uiView: UIView!

     @IBOutlet weak var reactWrapperView: UIView!

     override func viewDidLoad() {
         super.viewDidLoad()

         self.view.layer.borderColor = UIColor.yellow.cgColor
         self.view.layer.borderWidth = 2

         self.reactWrapperView.frame = (self.reactWrapperView.superview?.bounds)!
         self.reactWrapperView.layer.borderColor = UIColor.red.cgColor
         self.reactWrapperView.layer.borderWidth = 5

         self.uiView = UIView(frame: (self.reactWrapperView.superview?.bounds)!)
         self.uiView.layer.borderColor = UIColor.blue.cgColor
         self.uiView.layer.borderWidth = 10

         self.reactWrapperView.addSubview(self.uiView)

     }
 }

```

self.view and self.rectWrapperView are created in a storyboard and they are same size as the phone screen as shown in the following image.

```
self.view : yellow
self.reactWrapperView : red
self.uiView: blue

```

As you can see, bottom blue border is not shown and `uiView` seems to grow in size.

I've been struggling for long hours, woner what could affect the size. 

[![enter image description here](https://i.stack.imgur.com/2dLlp.png)](https://i.stack.imgur.com/2dLlp.png)