fix ordering (#1041)
This commit is contained in:
parent
84e5fc78da
commit
99375e98ff
|
@ -57,10 +57,6 @@ struct SearchView: View {
|
||||||
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
|
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
|
||||||
}
|
}
|
||||||
|
|
||||||
if viewModel.people.isNotEmpty {
|
|
||||||
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
|
|
||||||
}
|
|
||||||
|
|
||||||
if viewModel.programs.isNotEmpty {
|
if viewModel.programs.isNotEmpty {
|
||||||
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
|
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
|
||||||
}
|
}
|
||||||
|
@ -68,6 +64,10 @@ struct SearchView: View {
|
||||||
if viewModel.channels.isNotEmpty {
|
if viewModel.channels.isNotEmpty {
|
||||||
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
|
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if viewModel.people.isNotEmpty {
|
||||||
|
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,10 +69,6 @@ struct SearchView: View {
|
||||||
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
|
itemsSection(title: L10n.episodes, keyPath: \.episodes, posterType: searchPosterType)
|
||||||
}
|
}
|
||||||
|
|
||||||
if viewModel.people.isNotEmpty {
|
|
||||||
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
|
|
||||||
}
|
|
||||||
|
|
||||||
if viewModel.programs.isNotEmpty {
|
if viewModel.programs.isNotEmpty {
|
||||||
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
|
itemsSection(title: L10n.programs, keyPath: \.programs, posterType: .landscape)
|
||||||
}
|
}
|
||||||
|
@ -80,6 +76,10 @@ struct SearchView: View {
|
||||||
if viewModel.channels.isNotEmpty {
|
if viewModel.channels.isNotEmpty {
|
||||||
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
|
itemsSection(title: L10n.channels, keyPath: \.channels, posterType: .portrait)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if viewModel.people.isNotEmpty {
|
||||||
|
itemsSection(title: L10n.people, keyPath: \.people, posterType: .portrait)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.edgePadding(.vertical)
|
.edgePadding(.vertical)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue