I have a UIView that's centered vertically and horizontally in my storyboard and has a fixed height (100) and width (300). Now I want that uiview to be resized (100, 100) during runtime.
I have tried this so far but nothing worked.
let cgRect = CGRect(x: 0, y: 0, width: 100, height: 100)
sampleView.frame = CGRect(x: 0, y: 0, width: 100, height: 100)
sampleView.frame.size.height = 100
sampleView.frame.size.width = 100