Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Allow UICollectionViewLayout to Provide Layout Inspector, Always Update Delegate#3003

Merged
Adlai-Holler merged 5 commits intomasterfrom
AHLayoutInspectorTweaks
Feb 9, 2017
Merged

Allow UICollectionViewLayout to Provide Layout Inspector, Always Update Delegate#3003
Adlai-Holler merged 5 commits intomasterfrom
AHLayoutInspectorTweaks

Conversation

@Adlai-Holler
Copy link
Copy Markdown
Contributor

Resolves #3002 and #2634

Before you say it, I know we should protocolize this. We will. But at this stage I don't want to go halfway and do that. This change is intentionally very small so we can get it deployed immediately.

  • Replace asdk_isFlowLayout with asdk_layoutInspector
  • Call didChangeCollectionViewDelegate/didChangeCollectionViewDataSource when the layout inspector is bound, so they don't have to call it on themselves.
  • Remove the collectionView argument from the layout inspector initializer because we don't need it anymore.

Copy link
Copy Markdown
Contributor

@garrettmoon garrettmoon left a comment

Choose a reason for hiding this comment

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

This looks good to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants