SwiftUI: Solid filled background.
Tuesday, September 17th, 2019Let’s start with something simple. Looking for a way to fill the screen with a solid colour? The Spacer component expands to fill the available space. Add it at the root of the layout to simply fill the space with a colour. var body: some View { Spacer().background(Color.green) } If you want to layer things […]