mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 03:15:03 +00:00
Restrict swipe actions to iOS
This commit is contained in:
@@ -196,11 +196,13 @@ private struct VideoActionsSection: View {
|
||||
}
|
||||
}
|
||||
|
||||
#if os(iOS)
|
||||
NavigationLink {
|
||||
SwipeActionsSettingsView()
|
||||
} label: {
|
||||
Label(String(localized: "settings.appearance.swipeActions"), systemImage: "hand.draw")
|
||||
}
|
||||
#endif
|
||||
} header: {
|
||||
Text(String(localized: "settings.videoActions.header"))
|
||||
}
|
||||
|
||||
@@ -380,7 +380,7 @@ private struct PresetRow: View {
|
||||
.contentShape(Rectangle())
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
#if !os(tvOS)
|
||||
#if os(iOS)
|
||||
.swipeActions(edge: .trailing, allowsFullSwipe: false) {
|
||||
if let onDelete, !preset.isBuiltIn, canDelete {
|
||||
Button(role: .destructive) {
|
||||
|
||||
Reference in New Issue
Block a user