CornerRadius has just learned about RTL and border setup

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))

Or add the package in Xcode.

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.

Example

GitHub

View Github