-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
iOS: Increase library list item size #881
Conversation
On a side note, I'm not a main contributor, but these views seem like they warrant a SwiftUI rework anyway so this might get overridden when it happens |
@tonyd33 thank you, that was it! Now it shows in a two-column layout on the 13 mini: Regarding the rework I don't really mind if this change gets overwritten, just something in the interim so that it looks a bit nicer. |
This is a fairly complicated and annoying issue (with SwiftUI), so I'll give a fairly descriptive overview. The library view is just a wrapper around The overlap is caused as the collection view hasn't yet determined the size required as the view/cell is becoming rendered, which can happen if you scroll fast. At the same time, I was pretty ignorant on how Frankly, I now see this as a dumb implementation, which was implemented by yours truly. A solution we could implement "right now" is to change the layout to The proper solution is to rewrite the library view (and frankly some other views...) into a I am fine for having this "in the interim" as you say, but yes these views will be rewritten at some point in the future. |
1301606
to
202ebbc
Compare
202ebbc
to
a24e8e4
Compare
@LePips I've modified the commit so that it now applies the scaling like you mentioned. I had to refactor out the magic number while changing it because not applying it to the I kind of wanted to move the entire ternary statement out to a variable, but this didn't work:
I'm pretty sure there is a way to set a variable like this so I can reference it in both |
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.
As stated, I'm fine with this for now.
The current library list view seems a bit crowded:
With the increased size, we have three columns with a bit of padding between the items:
Unfortunately testing on a smaller screen (13 mini simulator) results in overlap with no padding. I'm not sure how to fix this, so leaving this PR as a draft for now: