ButtonBorderShape

A shape used to draw a button's border.

StructureiOS 15.0+macOS 12.0+tvOS 15.0+watchOS 8.0+ButtonBorderShape in SwiftUI

Declaration

React
type ButtonBorderShape =
  | 'automatic'
  | 'buttonBorder'
  | 'capsule'
  | 'circle'
  | 'roundedRectangle'
  | { roundedRectangle: { radius: number; }; };
Swift
struct ButtonBorderShape

Pass a literal, or build one with SwiftUI.ButtonBorderShape from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Overview

Use the View.buttonBorderShape(_:) view modifier to apply the shape to bordered buttons within a view hierarchy.

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

Used by

See also

More in Drawing and shapes.