According to the documentation for UIVIew @property(nonatomic) CGFloat alpha
UIVIew @property(nonatomic) CGFloat alpha
The value of this property is a floating-point number in the
In Swift 4.2 and Xcode 10.1
Don't add colour and alpha value through storyboard. Only programmatic approach will work in this case.
transparentView.backgroundColor = UIColor.black.withAlphaComponent(0.5)