Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Migrate old UIKIt Introspect from Cocoapods to Swift package manager #469

Answered by sergeirr
ankushkushwaha asked this question in Q&A
Discussion options

Description

Hi,

I am using UIKIt Introspect in my iOS project via cocoapods. I am trying migrate to Swift Package Manager (SPM).
I added SwiftUIIntrospect package via SPM, but SwiftUIIntrospect does not have old methods which was present in old UIKIt 'Introspect'.

In my code I am using old UIKIt methods like Introspect.findAncestor(ofType: UITableView.self, from: view)
and tried to import Introspect , but Introspect is not found.

Is old UIKit Introspect is unavailable? Is there any way I can use UIKit Introspect vis SPM?

Checklist

Expected behavior

UIKit Introspect should be available as Swift Package, But only available in cocoa-pods.

Actual behavior

UIKit Introspect is not available as Swift package

Steps to reproduce

No response

Version information

No response

Destination operating system

No response

Xcode version information

No response

Swift Compiler version information

You must be logged in to vote

Unfortunately, there is no migration documentation.

Try to use import SwiftUIIntrospect and start with examples.

Replies: 1 comment

Comment options

Unfortunately, there is no migration documentation.

Try to use import SwiftUIIntrospect and start with examples.

You must be logged in to vote
0 replies
Answer selected by davdroman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
Converted from issue

This discussion was converted from issue #451 on July 09, 2025 09:32.

AltStyle によって変換されたページ (->オリジナル) /