CornerRadius
CornerRadius has just learned about RTL and border setup! ⛶
Setup
Add the following to Package.swift
:
.package(url: "https://github.com/stateman92/CornerRadius", exact: .init(0, 0, 1))
Usage
RoundedCornerView(
corners: [.bottomTrailing, .topLeading],
border: .init(borderColor: .blue, lineWidth: 5),
radius: 25.0
) {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
.background(Color.red.opacity(0.5))
}
For details see the Example app.