-
Notifications
You must be signed in to change notification settings - Fork 6
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
499 Inconsistent padding #596
Conversation
#499 - Temporary implementation
# Conflicts: # FRW/Modules/Wallet/MoveAsset/MoveTokenView.swift
.lineLimit(nil) | ||
.fixedSize(horizontal: false, vertical: true) |
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 enables the text to be displayed in multiple lines, if needed, otherwise it stays on a single line and wrapped if necessary.
custom height is only on iOS 16 and up? |
Can we have a horizontal solution cross the app ? |
@zhouxl I thought I had answered to this question... maybe it was in the other PR that I closed. Anyway yes, unfortunately this works on iOS 16+ only |
@lmcmz Yes, the implementation is reusable, but it requires some minor refactoring on a case-by-case basis, similar to what done in |
|
nvm... I see you've duplicated the source-target row. I'll check that out |
@lmcmz what device and iOS version are you on? This is taken from the iPhone 15 Pro (simulator), iPhone SE (simulator): |
This move token view can be init from multiple places. The one I tested from home screen doesn't work. I would suggest we apply this dynamic height configuration in all places using
|
Can we meet today so you can show me in which case it does not work? Because I am unable to reproduce that.
I suggest deferring this to a separate ticket, to prevent this from being out of sync with develop again. |
…s to the view height
Yeah I haven't reworked on that after the discussions of the past couple days |
- Increased the minimum target to 16.0
Not sure, why we are not continue working on this.
|
This is what I have been working on in the latest days. I haven't pushed any commit since I needed to fix the layout issues first and then check and refactor all places where the half sheet is used. I should resubmit this for review today or tomorrow. However I think I'll defer the other 2 usages ( |
|
# Conflicts: # FRW.xcodeproj/project.pbxproj # FRW/Resource/en.lproj/Localizable.strings
Related Issue
Summary of Changes
Note: in this PR the min iOS version has been increased to 16.
Some implementation details:
Only the
halfSheet()
modifier, and corresponding places where it is used, have been refactored.PresentHostingController
andCustomHostingController
require additional refactoring that will be addressed on a separate ticket (#647)Need Regression Testing
Risk Assessment
Additional Notes
Screenshots (if applicable)
See this comment for a list of screenshots where the half sheet is used.