-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add keys to Overlay #264
Conversation
95b7f09
to
805f05b
Compare
configure(&self) | ||
} | ||
|
||
/// Adds the provided element to the overlay. | ||
@available(*, deprecated, renamed: "add(child:)") |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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:)") |
There was a problem hiding this comment.
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
Adding disambiguation keys to Overlay, like we currently have in other stack-likes.