View

extension View
  • Extends SwiftUI’s View to add a border function.

    Declaration

    Swift

    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.

  • Adds a navigation transition to the view

    • transition: The transition to be applied.

    Declaration

    Swift

    func navigationTransition(_ transition: AnyTransition) -> some View

    Return Value

    The modified view with the navigation transition.