Answers for "swift 5 change all view controller background color"

2

swift change background color

self.view.backgroundColor = UIColor.red
Posted by: Guest on March-20-2020
0

how to change background color of stackview swift

extension UIStackView {
    func addBackground(color: UIColor) {
        let subView = UIView(frame: bounds)
        subView.backgroundColor = color
        subView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        insertSubview(subView, at: 0)
    }
}
Posted by: Guest on April-13-2020

Code answers related to "swift 5 change all view controller background color"

Code answers related to "Swift"

Browse Popular Code Answers by Language