647 Refactor pull-up sheets to use dynamic height #688
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue
#647
Summary of Changes
Refactored the implementation of the half-sheet so that its height was dynamically set depending on the content.
This solution doesn't work with views having scroll views (even when combined with a geometry reader) because of the intrinsic size. These views will use the existing
PresentHostingController
with a fixed-sized sheet that can expand from half to full height.Need Regression Testing
All views (listed below) should be checked to verify the correct layout.
Risk Assessment
Additional Notes
Views migrated to use the dynamic pull-up sheet (in
RouteMap
unless otherwise specified):MoveAssetsView
inBrowserViewController
SyncAddDeviceView
BuyProvderView
StakeAmountView.StakeSetupView
JailbreakAlertView
MoveAssetsView
MoveTokenView
NFTTransferView
ChildAccountLinkView
NetworkSwitchPopView
Views automatically using the dynamic pull-up sheet (without any refactoring on a per-view basis):
AccountKeysView
showingAccountKeyRevokeView
AddTokenView
showingAddTokenConfirmView
BackupListView
showingDangerousTipSheetView
ChildAccountDetailView
showingUnlinkConfirmView
DevicesInfoView
showingDangerousTipSheetView
MultiBackupDetailView
showingDangerousTipSheetView
NFTAddCollectionView
showingNFTAddCollectionView.NFTCollectionEnableView
NFTDetailPage
showingMoveSingleNFTView
StakeAmountView
showingStakeConfirmView
SwapView
showingSwapConfirmView
TokenDetailView
showingMoveTokenView
WalletHomeView
showingBackupTipsView
WalletSendAmountView
showingSendConfirmView
Views using the old
PresentHostingController
(inRouteMap
):ImportAccountsView
MoveNFTsView
MoveAccountsView
AddTokenSheetView
AccountSwitchView
BrowserAuthnView
BrowserAuthzView
BrowserSignMessageView
BrowserSignTypedMessageView
Screenshots (if applicable)
N/A