Skip to content

New SwiftUIIntrospect Module, Version specifier #280

Closed Answered by davdroman
paescebu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @paescebu, glad to hear you're happy with the new module, and thank you for being an avid user :)

In short: yes, it's completely fine to do. If the underlying UIKit view type changes in the future, the callback simply won't be called.

I debated with myself quite a bit whether it makes sense to cover future platforms by default. But this comes with a few uncomfortable API quirks that ultimately make the library less intuitive and predictable. At the end of the day, I didn't want to sacrifice intuitiveness for the sake of ergonomics — which was arguably one of the biggest pitfalls of the original API—, and so this strictness is a trade-off I believe to be worthwhile for most users.

For l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@paescebu
Comment options

@davdroman
Comment options

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