[create-pull-request] automated change

This commit is contained in:
acvigue 2021-08-06 17:20:20 +00:00 committed by GitHub
parent 7365405790
commit e978db78ae
1 changed files with 4 additions and 8 deletions

View File

@ -69,8 +69,7 @@ struct SeriesItemView: View {
.padding(.horizontal, 16) .padding(.horizontal, 16)
} }
if let genreItems = viewModel.item.genreItems, if let genreItems = viewModel.item.genreItems,
!genreItems.isEmpty !genreItems.isEmpty {
{
ScrollView(.horizontal, showsIndicators: false) { ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 8) { LazyHStack(spacing: 8) {
Text("Genres:").font(.callout).fontWeight(.semibold) Text("Genres:").font(.callout).fontWeight(.semibold)
@ -105,8 +104,7 @@ struct SeriesItemView: View {
.padding(.horizontal, 8) .padding(.horizontal, 8)
LazyVStack(alignment: .leading, spacing: 0) { LazyVStack(alignment: .leading, spacing: 0) {
if let people = viewModel.item.people, if let people = viewModel.item.people,
!people.isEmpty !people.isEmpty {
{
Text("CAST") Text("CAST")
.font(.callout).fontWeight(.semibold) .font(.callout).fontWeight(.semibold)
.padding(.bottom, 8) .padding(.bottom, 8)
@ -127,8 +125,7 @@ struct SeriesItemView: View {
Text(person.name ?? "").font(.footnote).fontWeight(.regular).lineLimit(1) Text(person.name ?? "").font(.footnote).fontWeight(.regular).lineLimit(1)
.frame(width: 100).foregroundColor(Color.primary) .frame(width: 100).foregroundColor(Color.primary)
if let role = person.role, if let role = person.role,
!role.isEmpty !role.isEmpty {
{
Text(role).font(.caption).fontWeight(.medium).lineLimit(1) Text(role).font(.caption).fontWeight(.medium).lineLimit(1)
.foregroundColor(Color.secondary).frame(width: 100) .foregroundColor(Color.secondary).frame(width: 100)
} }
@ -142,8 +139,7 @@ struct SeriesItemView: View {
.padding(.bottom, 16) .padding(.bottom, 16)
} }
if let studios = viewModel.item.studios, if let studios = viewModel.item.studios,
!studios.isEmpty !studios.isEmpty {
{
ScrollView(.horizontal, showsIndicators: false) { ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 16) { LazyHStack(spacing: 16) {
Text("Studios:").font(.callout).fontWeight(.semibold) Text("Studios:").font(.callout).fontWeight(.semibold)