intuit / CardParts

A reactive, card-based UI framework built on UIKit for iOS developers.
Other
2.52k stars 225 forks source link

Change background colour of View Controller #138

Closed scjc closed 5 years ago

scjc commented 5 years ago

So have a normal view controller which loads up with loadCards(cards: cards)(similar to the example's MainViewController.swift)

I would like to change the background colour. I have tried changing it in storyboards and also using self.view.backgroundColor = UIColor(red:0.21, green:0.21, blue:0.21, alpha:1.0) in the viewDidLoad()

However, neither has worked and I'm not really sure how else to set the background view

Any help is much appreciated and many thanks in advance!

croossin commented 5 years ago

If you take a look at issue #131 you will be able to understand how to change the background color. Let me know if that does not solve your issue.