View
extension View
-
Extends SwiftUI’s View to add a border function.
Declaration
Swift
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.
-
Adds a navigation transition to the view
- transition: The transition to be applied.
Declaration
Swift
func navigationTransition(_ transition: AnyTransition) -> some ViewReturn Value
The modified view with the navigation transition.