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

Enable trailing closures for distribution builder with parameters #121

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

NickEntin
Copy link
Collaborator

Moves the builder parameter to the end to allow for trailing closure syntax when providing other parameters.

Moves the builder parameter to the end to allow for trailing closure syntax when providing other parameters.
Copy link
Collaborator

@dfed dfed left a comment

Choose a reason for hiding this comment

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

Yeah that's nicer. I'd kept it earlier for parity with the existing method but I do like this better.

@@ -161,7 +161,7 @@ extension UIView {
/// **Examples:**
///
/// To stack two elements with a 10 pt margin between them:
/// ```
/// ```swift
Copy link
Collaborator

Choose a reason for hiding this comment

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

oooooooooooh good stuff

@NickEntin NickEntin merged commit d9f2a4c into master Apr 25, 2024
6 checks passed
@NickEntin NickEntin deleted the entin/distribution-trailing-closure branch April 25, 2024 23:01
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

Successfully merging this pull request may close these issues.

3 participants