SyntaxFix
Write A Post
Hire A Developer
Questions
A faster / alternative way to change the height and/or width of a UIView is by setting its width/height through frame.size:
UIView
frame.size
let neededHeight = UIScreen.main.bounds.height * 0.2 yourView.frame.size.height = neededHeight