mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-17 20:12:41 +00:00
Use horizontal link preview card for Apple Podcasts as well (#1966)
* Custom layout for App Store links * generalize the logic to include links known to be associated with square icons - such as Apple Music and Spotify * show Apple Podcasts in horizontal link preview
This commit is contained in:
parent
773fdc318b
commit
d55d6a0371
|
@ -50,7 +50,7 @@ public struct StatusRowCardView: View {
|
||||||
} label: {
|
} label: {
|
||||||
if let title = card.title, let url = URL(string: card.url) {
|
if let title = card.title, let url = URL(string: card.url) {
|
||||||
VStack(alignment: .leading, spacing: 0) {
|
VStack(alignment: .leading, spacing: 0) {
|
||||||
let sitesWithIcons = ["apps.apple.com", "music.apple.com", "open.spotify.com"]
|
let sitesWithIcons = ["apps.apple.com", "music.apple.com", "podcasts.apple.com", "open.spotify.com"]
|
||||||
if isCompact {
|
if isCompact {
|
||||||
compactLinkPreview(title, url)
|
compactLinkPreview(title, url)
|
||||||
} else if (UIDevice.current.userInterfaceIdiom == .pad ||
|
} else if (UIDevice.current.userInterfaceIdiom == .pad ||
|
||||||
|
|
Loading…
Reference in a new issue