Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Refactor resolveSizeForItem #130

Merged
merged 2 commits into from
Sep 19, 2019
Merged

Refactor resolveSizeForItem #130

merged 2 commits into from
Sep 19, 2019

Conversation

zenangst
Copy link
Owner

Simplify the code path of resolveSizeForItem to reduce the amount of optional unwrapping

Simplify the code path of `resolveSizeForItem` to reduce the amount of optional unwrapping
Prioritize itemsPerRow before collection view as it is easier to resolve.
Checking the collection view makes the code path take an unnecessary path.
@zenangst zenangst merged commit 98e7163 into master Sep 19, 2019
@zenangst zenangst deleted the improve/resolve-size-for-item branch September 19, 2019 12:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant