Skip to content

Conversation

@FuzzzzyBoy
Copy link
Contributor

Recreate about screen with SwiftUI and make it more stylish :)

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this PR! I left a few comments.

I also had one issue on iPad with iOS 18, the about screen is only displayed when we hit the hamburger menu in the top left:

Simulator Screenshot - iPad (10th generation) - 2024-10-16 at 17 49 36
Simulator Screenshot - iPad (10th generation) - 2024-10-16 at 17 49 38

Image(systemName: iconName)
}
.font(.title2)
.foregroundColor(Color(red: 0.0, green: 0.18, blue: 0.39))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should avoid using custom colors as they won't work well with iOS upgrades or the dark mode (That includes .foregroundColor(.gray)).

Simulator Screenshot - iPad (10th generation) - 2024-10-16 at 17 50 15

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, thanks, fix it

Comment on lines 41 to 43
.background(Color(UIColor.secondarySystemGroupedBackground))
.cornerRadius(10)
.shadow(radius: 2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use a GroupBox to get a similar look but native to the platform.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, thanks, fix it

Comment on lines +101 to +104
private extension URL {
static let edrlab = URL(string: "https://www.edrlab.org/")!
static let license = URL(string: "https://opensource.org/licenses/BSD-3-Clause")!
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@FuzzzzyBoy
Copy link
Contributor Author

fix iPad layout

@FuzzzzyBoy
Copy link
Contributor Author

fix iPad layout

@FuzzzzyBoy
Copy link
Contributor Author

FuzzzzyBoy commented Oct 21, 2024

@mickael-menu I think I fix all issues, can you check this MR one more time plz?

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making the changes @FuzzzzyBoy 🙏

@mickael-menu mickael-menu merged commit ef69587 into readium:develop Oct 22, 2024
5 of 6 checks passed
@FuzzzzyBoy FuzzzzyBoy deleted the about-screen-sui branch October 23, 2024 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants