Skip to content

Popup View - Collapsable elements #147

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

Merged
merged 8 commits into from
Sep 19, 2022
Merged

Popup View - Collapsable elements #147

merged 8 commits into from
Sep 19, 2022

Conversation

mhdostal
Copy link
Member

This adds support for collapsable popup elements. It also adjusts the positions of some of the dividers, so there is an always-visible divider between the popup title and the scrollable list of elements. It also adds a "close" button to the popup (not represented in all the screen shots below).

image

Collapsable screen shots:

image

image

@mhdostal
Copy link
Member Author

@dfeinzimer There are actually very few changes to FloatingPanel.swift; most of the changes are spacing changes because I added a if isPresented.wrappedValue { to the start of the body (and the indentation of everything in body).

@rolson
Copy link
Contributor

rolson commented Sep 16, 2022

Hide the whitespace for easier review:

image

@dfeinzimer dfeinzimer self-requested a review September 17, 2022 00:40
Copy link
Collaborator

@dfeinzimer dfeinzimer left a comment

Choose a reason for hiding this comment

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

Just some small things


DisclosureGroup(isExpanded: $isExpanded) {
Divider()
.padding(.bottom, 4)
switch popupElement.displayType {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you get this warning too?

Screen Shot 2022-09-19 at 09 57 43

@dfeinzimer
Copy link
Collaborator

I checked the trace component and didn't find any breaking changes.

@mhdostal mhdostal requested a review from dfeinzimer September 19, 2022 19:12
Copy link
Collaborator

@dfeinzimer dfeinzimer left a comment

Choose a reason for hiding this comment

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

Looks good!

@mhdostal mhdostal merged commit 7e1f967 into v.next Sep 19, 2022
@mhdostal mhdostal deleted the mhd/CollapsableElements branch September 19, 2022 21:38
@mhdostal
Copy link
Member Author

@dfeinzimer Thank you!

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