Esri / data-collection-ios

Mobile data collection app using the iOS Runtime SDK.
https://developers.arcgis.com/
Apache License 2.0
25 stars 26 forks source link

Mhd/194 floating panel #247

Closed mhdostal closed 4 years ago

mhdostal commented 4 years ago

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).

mhdostal commented 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.

nCastle1 commented 4 years ago

I've taken a look and have a few comments on the behavior of the bottom sheet:

esreli commented 4 years ago

Quick note, please rebase this PR onto the new branch v.next-1.3.

mhdostal commented 4 years ago

Quick note, please rebase this PR onto the new branch v.next-1.3.

@esreli Done.

mhdostal commented 4 years ago

@esreli @philium - I've made the changes you recommended. I've made some pretty significant changes to the architecture, including:

I may have missed some small bits from the original reviews, so please re-raise those issues if necessary.

mhdostal commented 4 years ago

@sbaskaran - Can you please review this along with Phil and Eli? Thanks.

mhdostal commented 4 years ago

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?

esreli commented 4 years ago

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 commented 4 years ago

#247 (comment)

@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.

mhdostal commented 4 years ago

@esreli, @philium , @sbaskaran - I've address all the feedback, please take another look. Thanks!

mhdostal commented 4 years ago

@philium I made the requested changes, ready for re-review. Thanks!

rolson commented 4 years ago

👍