EdgeCornerStyle

A style that describes the corner of a rectangular shape.

StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+visionOS 26.0+Edge.Corner.Style in SwiftUI

Declaration

React
type EdgeCornerStyle =
  | 'concentric'
  | { concentric: { minimum?: EdgeCornerStyle | null; }; }
  | { fixed: number; }
  | { floatLiteral: EdgeCornerStyleFloatLiteralType; }
  | { integerLiteral: EdgeCornerStyleIntegerLiteralType; };
Swift
struct Style

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

Type properties

  • 'concentric'SwiftUI.EdgeCornerStyle.concentric

    A rounded corner style where the corner's radius shares a center point with the container shape's corner radius.

Type methods

Overview

A corner can be square, rounded with a fixed-radius curve, or rounded with a curve that's concentric to the container shape. For more information on how to create a shape with configurable corner styles, see ConcentricRectangle.

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

Used by

See also

More in Styles.