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

Make alert view scrollable #5354

Merged
merged 1 commit into from
Oct 27, 2023
Merged

Conversation

rablador
Copy link
Contributor

@rablador rablador commented Oct 24, 2023

Alert views should be scrollable, which is especially important for the change log.


This change is Reviewable

@linear
Copy link

linear bot commented Oct 24, 2023

IOS-359 Make change log scrollable

Currently the change log dialog is not scrollable on iOS, so if there are a lot of changes then the user cannot see them.

@rablador rablador added the iOS Issues related to iOS label Oct 24, 2023
Copy link
Collaborator

@pinkisemils pinkisemils left a comment

Choose a reason for hiding this comment

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

Would you mind posting a screenshot/screenrecording for this UI change? 🙂

Reviewable status: 0 of 2 files reviewed, all discussions resolved

Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

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

Sure thing, will post one soon. 👍

Reviewable status: 0 of 2 files reviewed, all discussions resolved

Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

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

@rablador rablador force-pushed the make-change-log-scrollable-ios-359 branch from 564e0f0 to 15ab0fa Compare October 24, 2023 11:00
buttonView.directionalLayoutMargins.top = UIMetrics.CustomAlert.interContainerSpacing

// Buttons below scrollable content should have more margin.
if scrollView.contentSize.height > scrollView.bounds.size.height {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if scrollView.contentSize.height > scrollView.bounds.size.height {
if scrollView.contentSize.height > scrollView.bounds.size.height {

Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 2 files at r1, all commit messages.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @rablador)


ios/MullvadVPN/View controllers/Alert/AlertViewController.swift line 195 at r2 (raw file):

Previously, MrChocolatine wrote…
            if scrollView.contentSize.height > scrollView.bounds.size.height {

I was wondering what was the difference, it turns out there's an extra space at the end of the if statement.

Thankfully, @rablador did run swiftformat right, right ? ಠ_ಠ

Copy link
Collaborator

@mojganii mojganii left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @rablador)

@rablador rablador force-pushed the make-change-log-scrollable-ios-359 branch from 15ab0fa to c8e18db Compare October 25, 2023 11:09
Copy link
Contributor Author

@rablador rablador left a comment

Choose a reason for hiding this comment

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

Reviewable status: 1 of 2 files reviewed, 2 unresolved discussions (waiting on @MrChocolatine)

a discussion (no related file):
Refactored away the setup method and improved encapsulation.



ios/MullvadVPN/View controllers/Alert/AlertViewController.swift line 195 at r2 (raw file):

Previously, buggmagnet wrote…

I was wondering what was the difference, it turns out there's an extra space at the end of the if statement.

Thankfully, @rablador did run swiftformat right, right ? ಠ_ಠ

Err, sure he did. Never missed it once!

@rablador rablador force-pushed the make-change-log-scrollable-ios-359 branch from c8e18db to 27fe58d Compare October 26, 2023 13:37
Copy link
Contributor

@buggmagnet buggmagnet left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @MrChocolatine)

@buggmagnet buggmagnet force-pushed the make-change-log-scrollable-ios-359 branch from 27fe58d to 3001603 Compare October 27, 2023 08:22
@buggmagnet buggmagnet force-pushed the make-change-log-scrollable-ios-359 branch from 3001603 to ed4d997 Compare October 27, 2023 08:24
@buggmagnet buggmagnet merged commit 7e9bb04 into main Oct 27, 2023
3 of 4 checks passed
@buggmagnet buggmagnet deleted the make-change-log-scrollable-ios-359 branch October 27, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iOS Issues related to iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants