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
-
Adds a navigation transition to the view
- transition: The transition to be applied.
Declaration
Swift
@MainActor func navigationTransition(_ transition: AnyTransition) -> some View
Return Value
The modified view with the navigation transition.