Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@diegorozen
Copy link
Contributor

Details

While I was building an RxSwift extension for MagazineLayout (which can be discussed in a different topic), I needed to provide sensible defaults for the cases when a forwarding delegate was not defined. Those defaults have already being defined by the lib in MagazineLayout.Default, but they are not visible outside the library.

Since that enum doesn't expose any internal implementation details, it would be helpful to mark it as public

Related Issue

Fixes #10

Motivation and Context

How Has This Been Tested

N/A

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

@bryankeller bryankeller added the enhancement New feature or request label Jan 10, 2019
Copy link
Contributor

@bryankeller bryankeller left a comment

Choose a reason for hiding this comment

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

Thanks for putting a PR up @diegorozen! This makes sense to me - my only change request is for MagazineLayout+Default.swift to be moved from MagazineLayout/LayoutCore/Types/ to MagazineLayout/Public/Types/.

Thanks for bumping the pod version as well!

Copy link
Contributor

@bryankeller bryankeller left a comment

Choose a reason for hiding this comment

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

Thanks for making those changes!

@bryankeller bryankeller merged commit 48ce819 into airbnb:master Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose MagazineLayout.Default enum as public

2 participants