Skip to content

LOOP-5122 Use continue button during onboarding#110

Merged
ps2 merged 1 commit intodevfrom
ps2/LOOP-5122/continue-button
Oct 25, 2024
Merged

LOOP-5122 Use continue button during onboarding#110
ps2 merged 1 commit intodevfrom
ps2/LOOP-5122/continue-button

Conversation

@ps2
Copy link
Contributor

@ps2 ps2 commented Oct 24, 2024

https://tidepool.atlassian.net/browse/LOOP-5122

Additional mode when onboarding to show continue button instead of delete service button.

@ps2 ps2 requested review from Camji55 and nhamming October 24, 2024 21:57
Copy link
Contributor

@nhamming nhamming left a comment

Choose a reason for hiding this comment

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

LGTM

Button(action: {
dismiss?()
}) {
Text(LocalizedString("Continue", comment: "Delete Tidepool service button title"))
Copy link
Member

Choose a reason for hiding this comment

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

FYI, you don't need to use a LocalizedString inside a Text initializer. You can do this instead to the same effect:

Suggested change
Text(LocalizedString("Continue", comment: "Delete Tidepool service button title"))
Text("Continue", comment: "Delete Tidepool service button title")

Copy link
Contributor Author

@ps2 ps2 Oct 25, 2024

Choose a reason for hiding this comment

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

We use LocalizedString in frameworks of Loop, so that the lookup happens from the framework's bundle instead of Loop's. You'll see this isn't NSLocalizedString, but a function local to the framework.

Copy link
Member

Choose a reason for hiding this comment

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

Ahh, got it!

@ps2 ps2 merged commit e7ad5fe into dev Oct 25, 2024
@ps2 ps2 deleted the ps2/LOOP-5122/continue-button branch October 25, 2024 19:38
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