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)
}
}
Also in Swift:
- swift open url
- hide bottom tab bar swift
- swift ns_enum generic name
- swift get day from available string
- swift thread.sleep
- deselect all cell in collectionview
- xcode how to get aspect ratio of device
- xcode cannot find uiimagepickercontrolleroriginalimage in scope
- parsing to double any data type in swift
- give background color swiftui
- swift uitableview cell spacing
- predicate realm bool swift
- use alamofire to login in swift 5
- Expression of type 'UIViewController?' is unused warning when pop view controller in swift 3.0
- swift change enum value
- xcode how to know which textfield is selected
- how to show notification icon on tabbar item swift
- Get the length of a String swift
- swift image button blue
- swift sort array
- UIFont.init bold
- swift close app
- Core Data Quickest way to delete all instances of an entity swift
- set image width and height swiftui