One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

TextInputBorderShape

struct · iOS 27.0+ · SDK 27.1

struct TextInputBorderShape

A shape used to draw the border of a text input control.

Members (4)

get · iOS 27.0+

roundedRectangle

TypeScript
static get roundedRectangle(): TextInputBorderShape
Swift declaration
static var roundedRectangle: TextInputBorderShape { get }

A rounded rectangle shape.

method · iOS 27.0+

path

TypeScript
path(rect: { x: number; y: number; width: number; height: number }): Path
Swift declaration
nonisolated func path(in rect: CGRect) -> Path

Describes this shape as a path within a rectangular frame of reference. - Parameter rect: The frame of reference for describing this shape. - Returns: A path that describes this shape.

get · iOS 27.0+

capsule

TypeScript
static get capsule(): TextInputBorderShape
Swift declaration
static var capsule: TextInputBorderShape { get }

A capsule shape.

get · iOS 27.0+

automatic

TypeScript
static get automatic(): TextInputBorderShape
Swift declaration
static var automatic: TextInputBorderShape { get }

A shape that defers to the system to determine an appropriate shape for the given context and platform.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

TextInputBorderShape.inset(by:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUICore types →