summaryrefslogtreecommitdiff
path: root/Jel/Views/Library/Item/ItemHeaderView.swift
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2024-01-07 16:41:45 -0500
committerShav Kinderlehrer <[email protected]>2024-01-07 16:41:45 -0500
commit4d40b0c083fa78a90337273b83b44f450c3d3d9b (patch)
tree63b8c559f735609cef3b94518e2e4084408e1ea1 /Jel/Views/Library/Item/ItemHeaderView.swift
parenta271314f15c30f59d84296a12aab280eda2d3c64 (diff)
downloadjel-4d40b0c083fa78a90337273b83b44f450c3d3d9b.tar.gz
jel-4d40b0c083fa78a90337273b83b44f450c3d3d9b.zip
Use backdrop blurhash + rename LibraryIconView
Diffstat (limited to 'Jel/Views/Library/Item/ItemHeaderView.swift')
-rw-r--r--Jel/Views/Library/Item/ItemHeaderView.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/Jel/Views/Library/Item/ItemHeaderView.swift b/Jel/Views/Library/Item/ItemHeaderView.swift
index 3930beb..b8a708a 100644
--- a/Jel/Views/Library/Item/ItemHeaderView.swift
+++ b/Jel/Views/Library/Item/ItemHeaderView.swift
@@ -21,18 +21,18 @@ struct ItemHeaderView: View {
var body: some View {
ZStack(alignment: .bottom) {
StickyHeaderView(minHeight: 300) {
- LibraryIconView(library: item, imageType: "Backdrop", contentMode: .fill)
+ ItemIconView(item: item, imageType: "Backdrop", contentMode: .fill)
.setCornerRadius(0)
.mask(overlayGradient)
.background {
- LibraryIconView(library: item, imageType: "Backdrop", contentMode: .fill)
+ ItemIconView(item: item, imageType: "Backdrop", contentMode: .fill)
.setCornerRadius(0)
.blur(radius: 50)
}
}
HStack {
- LibraryIconView(library: item, imageType: "Logo", width: 200, height: 100, placeHolder: AnyView(Text(item.name ?? "Unknown").font(.title).bold().truncationMode(.middle)))
+ ItemIconView(item: item, imageType: "Logo", width: 200, height: 100, placeHolder: AnyView(Text(item.name ?? "Unknown").font(.title).bold().truncationMode(.middle)))
.setCornerRadius(0)
.shadow(radius: 10)
.frame(alignment: .leading)