swift – How to override edgesIgnoringSafeArea (or any View modifier)

I’m trying to override the functionality of edgesIgnoringSafeArea(_:) since I have custom handling for the vertical safe area in my view. However, there’s no super to call so I’m not sure how to proceed other then handling every safe area edge. Any advice would be appreciated.

// Will use later for custom handling of vertical safe area
@State private var edgesThatIgnoreSafeArea: Edge.Set = ()

func edgesIgnoringSafeArea(_ edges: Edge.Set) -> some View {
    edgesThatIgnoreSafeArea = edges

    // There is no super here to call, and calling self would just call this function again
    return AnyView(edgesIgnoringSafeArea(edges.subtracting(.vertical)))  
}