Capsule Text Field
Gives your text field a capsule shape. This only has a visible effect on macOS, where the capsule shape is not the default.
Platform Compatibility
Tags
SwiftUI Code
TextField("Foo", text: $searchText)
.textInputBorderShape(.capsule)