mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use new presentation logic for feature cards
This commit is contained in:
parent
85caaa7ea3
commit
01a51a347e
1 changed files with 5 additions and 17 deletions
|
|
@ -21,23 +21,11 @@ struct LibraryFeatureCardNavigationLink: View {
|
|||
@State var showFeatureActions = false
|
||||
|
||||
var body: some View {
|
||||
PresentationLink(
|
||||
transition: PresentationLinkTransition.slide(
|
||||
options: PresentationLinkTransition.SlideTransitionOptions(edge: .trailing,
|
||||
options:
|
||||
PresentationLinkTransition.Options(
|
||||
modalPresentationCapturesStatusBarAppearance: true
|
||||
))),
|
||||
destination: {
|
||||
LinkItemDetailView(
|
||||
linkedItemObjectID: item.objectID,
|
||||
isPDF: item.isPDF
|
||||
)
|
||||
.background(ThemeManager.currentBgColor)
|
||||
}, label: {
|
||||
LibraryFeatureCard(item: item, viewer: dataService.currentViewer)
|
||||
}
|
||||
)
|
||||
Button(action: {
|
||||
viewModel.presentItem(item: item)
|
||||
}, label: {
|
||||
LibraryFeatureCard(item: item, viewer: dataService.currentViewer)
|
||||
})
|
||||
.buttonStyle(.plain)
|
||||
.confirmationDialog("", isPresented: $showFeatureActions) {
|
||||
if FeaturedItemFilter(rawValue: viewModel.fetcher.featureFilter) == .pinned {
|
||||
|
|
|
|||
Loading…
Reference in a new issue