Closed mhdostal closed 4 years ago
cc: @philium @pgruenler @rolson @nCastle1 @puneet-pdx @njarecha @sbaskaran - if you have a chance, please review. I need at least one more reviewer.
I've taken a look and have a few comments on the behavior of the bottom sheet:
Quick note, please rebase this PR onto the new branch v.next-1.3
.
Quick note, please rebase this PR onto the new branch
v.next-1.3
.
@esreli Done.
@esreli @philium - I've made the changes you recommended. I've made some pretty significant changes to the architecture, including:
ViewController
to Controller
, similar to how subclasses of UIViewController
like UINavigationController
.FloatingPanelItem
, now it is it's own class (not a protocol) and will be available to any UIViewController
, which implements FloatingPanelEmbeddable
. Again, this is similar to UINavigationController.navigationItem
.UINavigationController
whose push/pops are controlled by the main content navigation controller (aptly titled contentViewController
). Added custom animation to both view controllers, via a custom subclass of UINavigationController
: FloatingPanelNavigationController
.static func instantiate(_ initialViewController: FloatingPanelEmbeddable) -> FloatingPanelController
to simplify creating a floating panel and setting the initial VC.I may have missed some small bits from the original reviews, so please re-raise those issues if necessary.
@sbaskaran - Can you please review this along with Phil and Eli? Thanks.
As of iOS 13 UIButton supports the
.close
button type, which in effect looks like the close button you've introduced (x-close). Would you provide conditional support for devices running iOS 12 to use your (x-close) button and iOS 13 and on to use the close button supplied by UIKit?
@esreli - the buttonType
property on UIButton
is readonly
, so I have to create the button with that type, either in the Storyboard or programmatically. Is there any mechanism to have such conditional-construction in the Storyboard?
https://github.com/Esri/data-collection-ios/pull/247#issuecomment-699097074
@mhdostal, I don't believe there is. This would probably require building the UIButton
programmatically.
@mhdostal, I don't believe there is. This would probably require building the
UIButton
programmatically.
Ok. I'm going to leave it as-is then and we can re-look at it when the SDK moves to iOS 13 as a minimum.
@esreli, @philium , @sbaskaran - I've address all the feedback, please take another look. Thanks!
@philium I made the requested changes, ready for re-review. Thanks!
👍
This is the FloatingPanel implementation for DataCollection v1.3. It also moves the Bookmarks from their own popover to a floating panel (LayerContents and Identify results will move later).
In addition to a code-level review, I'd be interested to hear how the floating panel "feels" when resizing and switching between visible states (minimized, partial, full).