View
extension View
-
Extends SwiftUI’s View to add a border function.
Declaration
Swift
@MainActor func border(width: CGFloat, edges: [Edge], color: Color) -> some View
Parameters
width
The width of the border.
edges
The edges to apply the border.
color
The color of the border.
-
Declaration
Swift
@MainActor func cornerRadius(_ radius: CGFloat, corners: UIRectCorner) -> some View