-
Notifications
You must be signed in to change notification settings - Fork 139
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
Add new Medium "Now Playing" widget #1876
Conversation
if family == .systemSmall { | ||
smallWidget(playingEpisode: playingEpisode) | ||
} else { | ||
mediumWidget(playingEpisode: playingEpisode) |
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.
Nit:
I would use a switch
here when dealing with enums
Following the test instructions, it worked as described 👌 |
…y different content instead
CHANGELOG.md
Outdated
@@ -3,6 +3,7 @@ | |||
- A new button is added under Account Settings: "Change Avatar". It opens the in-app Safari with Gravatar's Avatar Quick Editor. [#1770](https://github.com/Automattic/pocket-casts-ios/pull/1770) | |||
- Adds the ability to rate podcasts [#1879](https://github.com/Automattic/pocket-casts-ios/issues/1879) | |||
- Improve the sort by name algorithm [#1959](https://github.com/Automattic/pocket-casts-ios/issues/1959) | |||
- Adds a medium size for the Now Playing widget [#1876](https://github.com/Automattic/pocket-casts-ios/pull/1876) |
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.
Let's update this following the assigned milestone. For now I set it to 7.72
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.
👍 Testing looked good on both iOS 17 and iOS 16 with and without something playing.
Just left one small nit in the comments.
.foregroundColor(widgetColorScheme.bottomTextColor.opacity(0.6)) | ||
Spacer() | ||
Image(widgetColorScheme.iconAssetName) | ||
.frame(width: 28, height: 28) |
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.
⛏️ It seems like this icon size is used three times, could it be put into a Constants or some other local property?
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.
Good call. Wasn't sure where best to add it but I found a CommonWidgetHelper
class to add the property to, and found all cases where widget icon frame was being defined (it was more than 3) and updated them all.
Pinging @david-gonzalez-a8c to give it some 👀 on the design |
Follow up to #1343 that introduces the new medium Now Playing widget from Lkt7fuf9Nq3XvfAFPCfpTD-fi-995_4119
Also adapts the existing "nothing playing" view for the medium size.
iOS 17
iOS 16
Nothing Playing
To test
NOTE: I'm not entirely sure when
showsWidgetContainerBackground
will ever be false for these widgets, but if you want to simulate that you can setLine 8
ofNowPlayingEntryView.swift
forcevar showsWidgetBackground = false
and then see how it renders. It won't be pretty because padding is removed for some reason, but that isn't done as part of this PR.Checklist
CHANGELOG.md
if necessary.