This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import SwiftUI | |
extension View { | |
/// Adds introspection to find the parent view controller in the view hierarchy and | |
/// makes that view controller available to downstream views in the view hierarchy. | |
public func addParentViewControllerIntrospection() -> some View { | |
modifier(ParentViewControllerEnvironmentModifier()) | |
} | |
} |