I tried to change the UIStackView
background from clear to white in Storyboard inspector, but when simulating, the background color of the stack view still has a clear color.
How can I change the background color of a UIStackView
?
Ios – How to change the background color of UIStackView
iosswiftuistackview
Related Topic
- Ios – Cocoa Touch: How To Change UIView’s Border Color And Thickness
- Ios – Passing data between view controllers
- Ios – How to change the background color of a UIButton while it’s highlighted
- Ios – UITableViewHeaderFooterView: Unable to change background color
- Ios – How to change Status Bar text color in iOS
- Ios – How to change image tintColor in iOS and WatchKit
- R – How to convert X => Option[R] to PartialFunction[X,R]
- Replacing characters with numbers in Haskell
Best Answer
Reference from HERE.
EDIT:
You can add a subView to
UIStackView
as mentioned HERE or in this answer (below) and assign a color to it. Check out belowextension
for that:And you can use it like: