ios change view background code example Example: swift change background color self.view.backgroundColor = UIColor.red