Question: how to change the background color in swift?
Answer: using this: self. view. backgroundColor = UIColor. redColor() however this works (the background is turning red) only when the backgroundColor is already set to the default color before running.