Skip to content
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

InfoPane UI Tweaks #540

Merged
merged 5 commits into from
Mar 22, 2024
Merged

InfoPane UI Tweaks #540

merged 5 commits into from
Mar 22, 2024

Conversation

marlonjames71
Copy link
Contributor

@marlonjames71 marlonjames71 commented Mar 20, 2024

Main Goal

I wanted to update the way the platform views looked when it comes to the position of the "Install" button. It sits below the platform title creating extra space unnecessarily in my opinion. This looked confusing to me because I thought there might have been missing text. My change in regards to that puts the "Install" button inline with the platform title. Benefits include:

  • uniform look for all detail views
  • doesn't look like something should be there and is missing—text, for example
  • that view doesn't change size when "Install" buttons aren't available
  • also just looks cleaner

Other Changes

  • ScrollView Content Clipping:
    The InfoPane's scrollable content was getting clipped due to the padding that was added to the InfoPane. I fixed this with a new SwiftUI modifier: contentMargins. I use an availability check first, so old clipped code will remain for anyone using macOS older that v14. This is nice since the added code is very minimal. The only change from the old is that the padding was moved into the InfoPane's file making it responsible for its own layout.

  • Indentation Inconsistencies:
    I usually reindent files to fix any indentation that needs fixin'.

  • README Update:
    Because there were changes made to the UI in the info pane, I also went ahead and updated the images that show in the README file. Hope that's okay.

Here are some images

Old New
CleanShot 2024-03-19 at 22 39 41@2x CleanShot 2024-03-19 at 22 39 19@2x

- Uses content margins instead of padding when it can to avoid content clipping during scrolling
- Also fixes a few indentation inconsistencies
- Adds min width for platforms section
@MattKiazyk
Copy link
Contributor

Thanks @marlonjames71 - tweaks looks awesome!

@MattKiazyk MattKiazyk merged commit 45626e2 into XcodesOrg:main Mar 22, 2024
1 check passed
@MattKiazyk MattKiazyk added the enhancement New feature or request label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants