Skip to content

Unify introspect modifiers #232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 2, 2023
Merged

Conversation

davdroman
Copy link
Collaborator

@davdroman davdroman commented Jun 2, 2023

This took some heavy generics voodoo, but it seems to work quite nicely.

@davdroman davdroman changed the title [wip] Improve receiver controller algorithm [wip] Combine both into one introspect modifier Jun 2, 2023
@davdroman davdroman changed the title [wip] Combine both into one introspect modifier [wip] Unify into one introspect modifier Jun 2, 2023
@@ -49,34 +81,29 @@ struct IntrospectionView<Target: AnyObject>: PlatformViewControllerRepresentable
private let customize: (Target) -> Void

init(
selector: @escaping (PlatformView) -> Target?,
selector: @escaping (any PlatformEntity) -> Target?,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swift 5.7 existentials came in handy too.

@davdroman davdroman changed the title [wip] Unify into one introspect modifier [wip] Unify introspect modifiers Jun 2, 2023
@davdroman davdroman changed the title [wip] Unify introspect modifiers Unify introspect modifiers Jun 2, 2023
@davdroman davdroman marked this pull request as ready for review June 2, 2023 22:31
@davdroman davdroman merged commit 43a8b9c into master Jun 2, 2023
@davdroman davdroman deleted the improve-receiver-controller-algo branch June 2, 2023 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant