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

Bind to first n items of ObservableArray #659

Open
pimnijman opened this issue Oct 9, 2019 · 0 comments
Open

Bind to first n items of ObservableArray #659

pimnijman opened this issue Oct 9, 2019 · 0 comments

Comments

@pimnijman
Copy link

I'd like to be able to bind to an ObservableArray while only receiving updates on the first n items of that array. Much like I would use prefix(_:) on an Array.

For example:

reviews.prefixCollection(5).bind(to: ...)

Is there any way I can achieve this effect without using filterCollection and looking up the index in the closure?

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

No branches or pull requests

1 participant