BorderedTextFieldStyle

A text field style with a system-defined border.

StructureiOS 27.0+macOS 27.0+tvOS 27.0+watchOS 27.0+visionOS 27.0+BorderedTextFieldStyle in SwiftUI

Declaration

React
type BorderedTextFieldStyle = SwiftOpaque<'BorderedTextFieldStyle'>;
Swift
struct BorderedTextFieldStyle

Overview

The shape of the border is determined by the View.textInputBorderShape(_:) modifier.

You can also use TextFieldStyle.bordered to construct this style.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.