Swiftui put border with different radii and stroke the border

88 views Asked by At

I need to put a .cornerRadius with different radii for each corner around a view with padding and I need to put an outline around that border. Any ideas?

1

There are 1 answers

2
Bjorn Morrhaye On
Text("one possibility")
   .font(.title)
   .multilineTextAlignment(.center)
   .padding(10)
   .border(Color.black, width: 2)
   .cornerRadius(10, 20, 30, 40)