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

Transitioning from Introspect to SwiftUI-Introspect: Guidance Needed #389

Unanswered
deankroker asked this question in Q&A
Discussion options

Hello everyone,

I'm fairly new to using the SwiftUI-Introspect package and I'm encountering some challenges while migrating from the original Introspect library. I'm seeking advice or resources that could assist in this transition.

Specifically, I'm looking for:

  • More detailed documentation or examples that showcase how to replicate the functionality I used with the older Introspect package in SwiftUI-Introspect, particularly for handling UIDatePicker.
  • Clarification on whether there's an autocompletion feature in SwiftUI-Introspect that suggests property types during introspection.

For instance, I was utilizing .introspectDatePicker(customize:) to set minuteInterval and roundsToMinuteInterval properties on a UIDatePicker. How should this be adapted for the new package?

Here's a snippet of the deprecated code causing issues:

image

And here's where I'm trying to use autocompletion with .introspect(:

image

Any guidance or links to resources would be greatly appreciated, and if there are steps or best practices for porting old functionality to the new package, I'd be grateful to learn about them. Suggestions for improvements in the README or IDE integrations that could help smooth out this learning curve would also be welcome.

Thank you in advance for your assistance!

You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

@davdroman any suggestions on this one?

You must be logged in to vote
1 reply
Comment options

Any documentation about how to migrate to the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

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