-
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
Secondary elements #49
Comments
Could you sketch what you imagine this API looks like? |
Oops, forgot to respond to this. I imagine a wrapper that simply takes two elements, and "attaches" the second to the first. Attached(
element: primaryElement,
attachment: secondaryElement
) Here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SwiftUI has a concept of secondary views, which are attached to a parent view but do not play a part in layout. Handy for e.g. putting a badge on an icon without changing the layout of the icon.
This can almost be replicated in Blueprint with Overlays, but really needs custom layout in order to let the secondary element take any size or position without affecting the parent element. Blueprint should provide a dedicated element for this pattern.
The text was updated successfully, but these errors were encountered: