summaryrefslogtreecommitdiff
path: root/Jel/Views/Library/Item/ItemHeaderView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Jel/Views/Library/Item/ItemHeaderView.swift')
-rw-r--r--Jel/Views/Library/Item/ItemHeaderView.swift14
1 files changed, 8 insertions, 6 deletions
diff --git a/Jel/Views/Library/Item/ItemHeaderView.swift b/Jel/Views/Library/Item/ItemHeaderView.swift
index 1ff25c7..d694c13 100644
--- a/Jel/Views/Library/Item/ItemHeaderView.swift
+++ b/Jel/Views/Library/Item/ItemHeaderView.swift
@@ -15,7 +15,8 @@ struct ItemHeaderView: View {
.init(color: .clear, location: 0),
.init(color: .black, location: 0.3),
.init(color: .black, location: 0.7),
- .init(color: .clear, location: 1)
+
+ .init(color: .clear, location: 1)
]), startPoint: .bottom, endPoint: .top)
var body: some View {
@@ -24,7 +25,7 @@ struct ItemHeaderView: View {
.hideCaption()
.setCornerRadius(0)
.mask(overlayGradient)
- .padding(.top, 50)
+// .padding(.top, 50)
.background {
LibraryIconView(library: item, imageType: "Backdrop", contentMode: .fill)
.hideCaption()
@@ -33,17 +34,18 @@ struct ItemHeaderView: View {
}
HStack {
- LibraryIconView(library: item, imageType: "Logo", width: 150)
+ LibraryIconView(library: item, imageType: "Logo", width: 200, height: 100, placeHolder: AnyView(Text(item.name ?? "Unknown").font(.title).bold().truncationMode(.middle)))
.hideCaption()
.setCornerRadius(0)
.shadow(radius: 10)
Spacer()
}
+ .frame(alignment: .leading)
.padding(.leading)
}
}
}
-#Preview {
- ItemHeaderView(item: BaseItemDto())
-}
+// #Preview {
+// ItemHeaderView(item: BaseItemDto())
+// }