Set default itemIconView placeholder
This commit is contained in:
parent
816cec03c0
commit
2d9d946bae
@ -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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user