View
extension View
-
Extends SwiftUI’s View to add a border function.
Declaration
Swift
@MainActor func border(width: CGFloat, edges: [Edge], color: Color) -> some ViewParameters
widthThe width of the border.
edgesThe edges to apply the border.
colorThe 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 ViewReturn Value
The modified view with the navigation transition.