Here is the code:
class ViewController: UIViewController {
@IBOutlet weak var border: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
let width = UIScreen.mainScreen().bounds.width
let height = UIScreen.mainScreen().bounds.height
border.image?.size.width = width
border.image?.size.height = height
}
but I got an error that says:
cannot assign to property: size is a get only property