Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[iOS] Implement CollectionView ScrollTo with groups #7220

Merged
merged 9 commits into from
Aug 28, 2019

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Aug 21, 2019

Description of Change

Calls to ScrollTo() which specify groups and group indexes now work.

Issues Resolved

API Changes

None

Platforms Affected

  • iOS

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Automated tests

PR Checklist

  • Has automated tests
  • Rebased on top of the target branch at time of PR
  • Changes adhere to coding standard
  • Suppressed skepticism about fourth Matrix film

@samhouts samhouts changed the base branch from 4.2.0 to master August 21, 2019 23:56
@@ -13,6 +13,8 @@ public class GroupableItemsViewController : SelectableItemsViewController
// BindableProperty all the time
bool _isGrouped;

private Action _scrollAnimationEndedCallback;
Copy link
Member

Choose a reason for hiding this comment

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

drop private

Copy link
Member

@rmarinho rmarinho left a comment

Choose a reason for hiding this comment

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

Works fine , tried the several positions too.
Just small comments, and the page is kinda of weird on Android.
We could also add the ScrollToPosition enum option on the gallery.

Screenshot_1566923549

@samhouts samhouts added the approved Has two approvals, no pending reviews, and no changes requested label Aug 27, 2019
@hartez hartez merged commit 14b8b5a into master Aug 28, 2019
@PureWeen PureWeen deleted the cv-ios-scrolltogroup branch August 29, 2019 18:36
@samhouts samhouts added this to the 4.3.0 milestone Sep 11, 2019
felipebaltazar pushed a commit to felipebaltazar/Xamarin.Forms that referenced this pull request Oct 16, 2019
* ScrollTo with groupIndex on iOS

* Add test for scrolling to group/item (objects rather than indexes)

* Fix automation IDs for new fields

* Add missing issue info to test page

* Fix UI tests

* Workaround for problems scrolling to group index/item index on first try

* Make the test page legible on Android

* Remove private modifiers
felipebaltazar pushed a commit to felipebaltazar/Xamarin.Forms that referenced this pull request Oct 16, 2019
* ScrollTo with groupIndex on iOS

* Add test for scrolling to group/item (objects rather than indexes)

* Fix automation IDs for new fields

* Add missing issue info to test page

* Fix UI tests

* Workaround for problems scrolling to group index/item index on first try

* Make the test page legible on Android

* Remove private modifiers
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/collectionview approved Has two approvals, no pending reviews, and no changes requested p/iOS 🍎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants