Answers for "how to set the stack color in swiftui"

0

swiftui background color

Group {
	//Views inside the highest view in the hierarchy
}.background(Color.red.edgesIgnoringSafeArea(.all))
Posted by: Guest on June-30-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
0

how to set the stack color in swiftui

struct ContentView: View {
    var body: some View {
        ZStack {
            Color.red
            .edgesIgnoringSafeArea(.all)
        }
    }
}
Posted by: Guest on December-10-2020

Code answers related to "how to set the stack color in swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language