To achieve that, I tried to create an empty view with a fixed frame and a background color / border: EmptyView() .frame(width: 200, height: 2) .background(Color.black) // or: .border(Color.black, width: 2) Unfortunately, I cannot see any dark […] SwiftUI View not updating based on @ObservedObject. Using Spacer might even remind you of hacking layouts together using br tags in html.. “A control that displays an … If you want to change the width but you don't want it to be centered you can use the float:left or float:right line. SwiftUI WKWebView content height issue. This is the equivalent of truncating a text view and … How to change width of Divider in SwiftUI? Sometimes, you may need to create a full-width button that takes up the width of the screen.