user4643296
user4643296

Reputation:

Create semi transparent Uiview in Swift 3

I'm using swift 3 Xcode 8.1, I want to make a semi transparent UiView over details UiView that prevent user from provide rating and comment unless he is logged, such as appears in image below, How can I make this Semi transparent View semi transparent UiView

Upvotes: 1

Views: 1970

Answers (1)

adarshaU
adarshaU

Reputation: 960

Try this

customView.backgroundColor = UIColor.black.withAlphaComponent(0.5)

Upvotes: 4

Related Questions