Computer Techniques
by Kyle Hughes

How To Use Continuous Corners on iOS, macOS, and tvOS

Available for iOS 13+, macOS 10.15+, and tvOS 13+.

SwiftUI

RoundedRectangle(cornerRadius: 15, style: .continuous)

Core Animation / UIKit / AppKit

view.layer.cornerRadius = 15
view.layer.cornerCurve = .continuous