-
Notifications
You must be signed in to change notification settings - Fork 133
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
Playback 2024: Loading and Error screens #2369
Conversation
@@ -42,7 +42,7 @@ struct Top5Podcasts2024Story: ShareableStory { | |||
.disabled(!isSmallScreen) // Disable scrolling on larger where we shouldn't be clipping. | |||
.frame(height: geometry.size.height * 0.65) | |||
|
|||
Text("And you were big on these shows too!") | |||
Text(L10n.eoyStoryTopPodcastsTitle) |
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.
@bjtitus I found this text unlocalized. I changed it but let me know if I need to revert it.
.frame(width: 40, height: 40) | ||
Text(L10n.loading) | ||
.foregroundColor(.white) | ||
.foregroundColor(.black) | ||
.font(style: .body) | ||
} | ||
|
||
storySwitcher |
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.
@bjtitus I'm not sure if this needs to be here. Forcing the loading view or error to be in the body causes a crash when tapping. the start method called causes an Inf value calculating the current progress. WDYT?
} | ||
|
||
var failed: some View { | ||
ZStack { | ||
Spacer() | ||
|
||
Text(L10n.eoyStoriesFailed) | ||
.foregroundColor(.white) | ||
.foregroundColor(.black) | ||
|
||
storySwitcher |
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.
@bjtitus Same here. WDYT?
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.
Modify styles to our previous loading and error screens.
Localize one text in
Top5Podcasts2024Story
To test
StoriesView
-> body to force the loading and error stateChecklist
CHANGELOG.md
if necessary.