ios recently added
This commit is contained in:
parent
5bfb8e240d
commit
a2dfc9fc0c
|
@ -53,6 +53,7 @@ struct HomeView: View {
|
||||||
if !viewModel.resumeItems.isEmpty {
|
if !viewModel.resumeItems.isEmpty {
|
||||||
ContinueWatchingView(viewModel: viewModel)
|
ContinueWatchingView(viewModel: viewModel)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !viewModel.nextUpItems.isEmpty {
|
if !viewModel.nextUpItems.isEmpty {
|
||||||
PortraitImageHStackView(items: viewModel.nextUpItems,
|
PortraitImageHStackView(items: viewModel.nextUpItems,
|
||||||
horizontalAlignment: .leading) {
|
horizontalAlignment: .leading) {
|
||||||
|
@ -63,14 +64,24 @@ struct HomeView: View {
|
||||||
} selectedAction: { item in
|
} selectedAction: { item in
|
||||||
homeRouter.route(to: \.item, item)
|
homeRouter.route(to: \.item, item)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if !viewModel.latestAddedItems.isEmpty {
|
||||||
|
PortraitImageHStackView(items: viewModel.latestAddedItems) {
|
||||||
|
Text("Recently Added")
|
||||||
|
.font(.title2)
|
||||||
|
.fontWeight(.bold)
|
||||||
|
.padding()
|
||||||
|
} selectedAction: { item in
|
||||||
|
homeRouter.route(to: \.item, item)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ForEach(viewModel.libraries, id: \.self) { library in
|
ForEach(viewModel.libraries, id: \.self) { library in
|
||||||
|
|
||||||
LatestMediaView(viewModel: LatestMediaViewModel(library: library)) {
|
LatestMediaView(viewModel: LatestMediaViewModel(library: library)) {
|
||||||
HStack {
|
HStack {
|
||||||
Text(L10n.latestWithString(library.name ?? ""))
|
Text(L10n.latestInWithString(library.name ?? ""))
|
||||||
.font(.title2)
|
.font(.title2)
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue