07-19-2023, 12:35 AM
How do I round borders in SwiftUI?
I would assume this would work:
.cornerRadius(10)
.border(Color.white)
Tho it dose not work.
This is my workaround for now:
.overlay(RoundedRectangle(cornerRadius: 10).stroke(lineWidth: 1).foregroundColor(.white))
I would assume this would work:
.cornerRadius(10)
.border(Color.white)
Tho it dose not work.
This is my workaround for now:
.overlay(RoundedRectangle(cornerRadius: 10).stroke(lineWidth: 1).foregroundColor(.white))