Skip to content
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

Add primary associated types to property and binding protocols #888

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

braker1nine
Copy link
Contributor

@braker1nine braker1nine commented Jan 18, 2025

Including the following protocols

  • PropertyProtocol
  • MutablePropertyProtocol
  • ComposableMutablePropertyProtocol
  • BindingSource
  • BindingTargetProvider

Checklist

  • Updated CHANGELOG.md.

- PropertyProtocol
- MutablePropertyProtocol
- ComposableMutablePropertyProtocol
- BindingSource
- BindingTargetProvider
@braker1nine
Copy link
Contributor Author

I'm still very irritated that I don't have a solution that doesn't involve duplicating everything in the protocol...

@braker1nine
Copy link
Contributor Author

Resolves #887

Copy link
Contributor

@mluisbrown mluisbrown left a comment

Choose a reason for hiding this comment

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

Looks good 👍 . If you could just fix the one typo (which already existed in the original definition).

extension Signal: BindingSource where Error == Never {}
extension SignalProducer: BindingSource where Error == Never {}

#if swift(>=5.7)
/// Describes an entity which be bond towards.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Describes an entity which be bond towards.
/// Describes an entity which can be bound towards.

This typo is also in the original below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Fixed it in a couple other spots that seemed incorrect as well

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.

2 participants