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

Add keys to Overlay #264

Merged
merged 3 commits into from Sep 21, 2021
Merged

Add keys to Overlay #264

merged 3 commits into from Sep 21, 2021

Conversation

watt
Copy link
Collaborator

@watt watt commented Sep 18, 2021

Adding disambiguation keys to Overlay, like we currently have in other stack-likes.

configure(&self)
}

/// Adds the provided element to the overlay.
@available(*, deprecated, renamed: "add(child:)")
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO keeping this and not deprecating it is probably fine; since not everyone needs/wants keys?

Copy link
Collaborator

Choose a reason for hiding this comment

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

(Eg, so the shorter method is probably fine to avoid a ton of deprecation warnings)

Copy link
Contributor

Choose a reason for hiding this comment

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

meh, stacks use add(child:) and I kinda like the consistency? no strong opinion though

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought it was confusing to have both add(_:) and add(child:), and the latter is consistent with other stacks.

configure(&self)
}

/// Adds the provided element to the overlay.
@available(*, deprecated, renamed: "add(child:)")
Copy link
Contributor

Choose a reason for hiding this comment

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

meh, stacks use add(child:) and I kinda like the consistency? no strong opinion though

@watt watt enabled auto-merge (squash) September 21, 2021 19:47
@watt watt merged commit c9682e1 into main Sep 21, 2021
@watt watt deleted the watt/overlay-keys branch September 21, 2021 20:20
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.

None yet

4 participants