diff options
Diffstat (limited to 'Jel/Views/Item/ItemInfoView.swift')
-rw-r--r-- | Jel/Views/Item/ItemInfoView.swift | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Jel/Views/Item/ItemInfoView.swift b/Jel/Views/Item/ItemInfoView.swift index dda1c39..22eedaf 100644 --- a/Jel/Views/Item/ItemInfoView.swift +++ b/Jel/Views/Item/ItemInfoView.swift @@ -14,9 +14,13 @@ struct ItemInfoView: View { var body: some View { VStack(alignment: .leading) { HStack { - Text((item.productionYear != nil) ? String(item.productionYear!) : "---") - Text("•") - Text(item.genres?.first ?? "---") + if let productionYear = item.productionYear { + Text(String(productionYear)) + } + if let genres = item.genres { + Text("•") + Text(genres.first ?? "---") + } } HStack { |