Skip to content

How to introspect UISheetPresentationController #141

@y0zong

Description

@y0zong
public func introspectSplitViewController(customize: @escaping (UISheetPresentationController) -> ()) -> some View {
        inject(UIKitIntrospectionViewController(
            selector: { introspectionViewController in
                
                // Search in ancestors
                if let sheetPresentationController = introspectionViewController.sheetPresentationController {
                    return sheetPresentationController
                }
                
                // Search in siblings
                return Introspect.previousSibling(containing: UISheetPresentationController.self, from: introspectionViewController)
            },
            customize: customize
        ))
    }

error Type of expression is ambiguous without more context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions