Skip to content

Commit

Permalink
Add delete entry swipe action
Browse files Browse the repository at this point in the history
  • Loading branch information
bourvill committed May 21, 2024
1 parent cc35222 commit 66d2a84
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions App/Features/Entry/EntriesListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ struct EntriesListView: View {
StarEntryButton(entry: entry)
.tint(.orange)
.labelStyle(.iconOnly)
Button(action: {
context.delete(entry)
}, label: {
Label("Delete", systemImage: "trash")
})
.tint(.red)
.labelStyle(.iconOnly)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion App/Features/Entry/EntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct EntryView: View {
.fontWeight(.black)
.lineLimit(2)
.padding(.horizontal)
ProgressView(value: progress, total: 1)
ProgressView(value: min(progress, 1), total: 1)
WebView(entry: entry, progress: $progress)
}
.addSwipeToBack {
Expand Down
4 changes: 2 additions & 2 deletions wallabag.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 7.2.3;
MARKETING_VERSION = 7.2.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1330,7 +1330,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 7.2.3;
MARKETING_VERSION = 7.2.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"originHash" : "1351681aa0561c1bf75095fc5a7de05b4fad33bf3861685ea452fe23e7b8d022",
"pins" : [
{
"identity" : "factory",
"kind" : "remoteSourceControl",
"location" : "git@github.com:hmlongco/Factory.git",
"location" : "https://github.com/hmlongco/Factory",
"state" : {
"revision" : "8ca11a7bd1ede031e8e6d7a912bb116e2e43961b",
"version" : "2.3.1"
Expand Down Expand Up @@ -109,5 +110,5 @@
}
}
],
"version" : 2
"version" : 3
}

0 comments on commit 66d2a84

Please sign in to comment.