mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +00:00
Only show the new icon card on iPad / macOS
This commit is contained in:
parent
9b70519798
commit
b4757621f2
1 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,8 @@ public struct StatusRowCardView: View {
|
||||||
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) {
|
VStack(alignment: .leading) {
|
||||||
let sitesWithIcons = ["apps.apple.com", "music.apple.com", "open.spotify.com"]
|
let sitesWithIcons = ["apps.apple.com", "music.apple.com", "open.spotify.com"]
|
||||||
if let host = url.host(), sitesWithIcons.contains(host) {
|
if (UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac),
|
||||||
|
let host = url.host(), sitesWithIcons.contains(host) {
|
||||||
iconLinkPreview(title, url)
|
iconLinkPreview(title, url)
|
||||||
} else {
|
} else {
|
||||||
defaultLinkPreview(title, url)
|
defaultLinkPreview(title, url)
|
||||||
|
|
Loading…
Reference in a new issue