Hey for some reason I am struggling with trying to set the height and width of one of my image views. I want to set it so the height only goes for 20% of my screen. I know to re
The accepted answer in Swift 3:
let screenSize: CGRect = UIScreen.main.bounds image.frame = CGRect(x: 0, y: 0, width: 50, height: screenSize.height * 0.2)