-
Notifications
You must be signed in to change notification settings - Fork 7
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
df/RefactorFloatingPanel #74
Conversation
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
Outdated
Show resolved
Hide resolved
…wift Co-authored-by: Mark Dostal <mdostal@esri.com>
@mhdostal I've applied some changes that pull out the width param and make FP act more like how we discussed on Slack: Achieving this is still a bit wonky though as it requires the user to conditionally apply width and padding: |
@dfeinzimer Can we move the As for the width, can the client simply set the |
Moving padding internal is a good call. I also changed width as suggested but am using .frame(maxWidth: horizontalSizeClass == .regular ? 360 : .infinity) because the provided value (e.g. 360 here) may not be wide enough to fill the width even in compact environments. |
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.
Just the one thing.
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
Outdated
Show resolved
Hide resolved
@dfeinzimer Nice work! These are useful additions to the FP! |
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.
This is what I see when I first open the example on an iPhone in portrait orientation:
Is that right? It seems odd that the floating panel would be taking up the whole screen. If I rotate to landscape and then back to portrait, then the floating panel takes up only half of the screen:
I'm guessing that's the intended behavior.
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/FloatingPanel/FloatingPanel.swift
Outdated
Show resolved
Hide resolved
Yes, this would be good. The original design for the Floating Panel in the Data Collection open-source app did not allow arbitrary heights, but predefined "modes" (aka, detents):
|
Resolves Floating Panel height can be set larger than displayed height #15
Adds support for bottom vertical alignment
Moves width into the constructor
Will add 2nd reviewer once Mark has approved the changes