diff options
author | Shav Kinderlehrer <[email protected]> | 2024-02-12 11:51:06 -0500 |
---|---|---|
committer | Shav Kinderlehrer <[email protected]> | 2024-02-12 11:51:06 -0500 |
commit | 2d9d946bae8e2fa2dd0daea741442c7fa8350ad5 (patch) | |
tree | accd832cd34428040a0b9ccf6104394ba4fcf623 | |
parent | 816cec03c0042bde2a69a066530ac29bf87e037e (diff) | |
download | jel-2d9d946bae8e2fa2dd0daea741442c7fa8350ad5.tar.gz jel-2d9d946bae8e2fa2dd0daea741442c7fa8350ad5.zip |
Set default itemIconView placeholder
-rw-r--r-- | Jel/Views/Item/ItemIconView.swift | 2 | ||||
-rw-r--r-- | Jel/Views/Item/Types/ItemPersonView.swift | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Jel/Views/Item/ItemIconView.swift b/Jel/Views/Item/ItemIconView.swift index c2006cc..c4e958e 100644 --- a/Jel/Views/Item/ItemIconView.swift +++ b/Jel/Views/Item/ItemIconView.swift @@ -22,7 +22,7 @@ struct ItemIconView: View { @State var imageUrl: URL? @State var contentMode: ContentMode = .fit - var placeHolder: AnyView? + var placeHolder: AnyView? = AnyView(Color(uiColor: UIColor.secondarySystemBackground)) var shouldShowCaption: Bool = false var imageCornerRadius: CGFloat = 5 diff --git a/Jel/Views/Item/Types/ItemPersonView.swift b/Jel/Views/Item/Types/ItemPersonView.swift index e6a3b57..0d93281 100644 --- a/Jel/Views/Item/Types/ItemPersonView.swift +++ b/Jel/Views/Item/Types/ItemPersonView.swift @@ -43,7 +43,7 @@ struct ItemPersonView: View { VStack(alignment: .leading) { Text(item.name ?? "---") .font(.title) - .padding() + .padding([.horizontal, .top]) if let overview = item.overview { ExpandableText(overview) @@ -52,7 +52,6 @@ struct ItemPersonView: View { } if let items = items { - // TODO: Extract to view to maintain DRY let movies = items.filter({$0.type == .movie}) if movies.count > 0 { Text("Movies") |