remove navigationlink
This commit is contained in:
parent
6c2d153df4
commit
bfe557c86c
|
@ -136,10 +136,13 @@ struct EpisodeItemView: View {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
LazyHStack {
|
LazyHStack {
|
||||||
Spacer().frame(width: 45)
|
Spacer().frame(width: 45)
|
||||||
ForEach(viewModel.similarItems, id: \.id) { similarItems in
|
ForEach(viewModel.similarItems, id: \.id) { similarItem in
|
||||||
NavigationLink(destination: ItemView(item: similarItems)) {
|
Button {
|
||||||
PortraitItemElement(item: similarItems)
|
itemRouter.route(to: \.item, similarItem)
|
||||||
}.buttonStyle(PlainNavigationLinkButtonStyle())
|
} label: {
|
||||||
|
PortraitItemElement(item: similarItem)
|
||||||
|
}
|
||||||
|
.buttonStyle(PlainNavigationLinkButtonStyle())
|
||||||
}
|
}
|
||||||
Spacer().frame(width: 45)
|
Spacer().frame(width: 45)
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,12 +11,13 @@ import SwiftUI
|
||||||
import JellyfinAPI
|
import JellyfinAPI
|
||||||
|
|
||||||
struct MovieItemView: View {
|
struct MovieItemView: View {
|
||||||
|
|
||||||
|
@EnvironmentObject var itemRouter: ItemCoordinator.Router
|
||||||
@ObservedObject var viewModel: MovieItemViewModel
|
@ObservedObject var viewModel: MovieItemViewModel
|
||||||
|
|
||||||
@State var actors: [BaseItemPerson] = []
|
@State var actors: [BaseItemPerson] = []
|
||||||
@State var studio: String?
|
@State var studio: String?
|
||||||
@State var director: String?
|
@State var director: String?
|
||||||
|
|
||||||
@State var wrappedScrollView: UIScrollView?
|
@State var wrappedScrollView: UIScrollView?
|
||||||
|
|
||||||
@Namespace private var namespace
|
@Namespace private var namespace
|
||||||
|
@ -141,10 +142,13 @@ struct MovieItemView: View {
|
||||||
ScrollView(.horizontal) {
|
ScrollView(.horizontal) {
|
||||||
LazyHStack {
|
LazyHStack {
|
||||||
Spacer().frame(width: 45)
|
Spacer().frame(width: 45)
|
||||||
ForEach(viewModel.similarItems, id: \.id) { similarItems in
|
ForEach(viewModel.similarItems, id: \.id) { similarItem in
|
||||||
NavigationLink(destination: ItemView(item: similarItems)) {
|
Button {
|
||||||
PortraitItemElement(item: similarItems)
|
itemRouter.route(to: \.item, similarItem)
|
||||||
}.buttonStyle(PlainNavigationLinkButtonStyle())
|
} label: {
|
||||||
|
PortraitItemElement(item: similarItem)
|
||||||
|
}
|
||||||
|
.buttonStyle(PlainNavigationLinkButtonStyle())
|
||||||
}
|
}
|
||||||
Spacer().frame(width: 45)
|
Spacer().frame(width: 45)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue