Skip to content

Commit

Permalink
Fix actionsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
bourvill committed Oct 23, 2023
1 parent 34d4b81 commit d4defcd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
25 changes: 12 additions & 13 deletions App/Features/Entry/EntryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,24 @@ struct EntryView: View {
.accessibilityLabel("Entry option")
.frame(width: 28, height: 28)
.contentShape(Rectangle())
.actionSheet(isPresented: $showDeleteConfirm) {
ActionSheet(
title: Text("Confirm delete?"),
buttons: [
.destructive(Text("Delete")) {
context.delete(entry)
dismiss()
},
.cancel(),
]
)
}
}

ToolbarItem(placement: toolbarPlacement) {
FontSizeSelectorView()
.buttonStyle(.plain)
}
}
.actionSheet(isPresented: $showDeleteConfirm) {
ActionSheet(
title: Text("Confirm delete?"),
buttons: [
.destructive(Text("Delete")) {
context.delete(entry)
dismiss()
},
.cancel(),
]
)
}
.sheet(isPresented: $showTag) {
TagListFor(tagsForEntry: TagsForEntryPublisher(entry: entry))
.environment(\.managedObjectContext, context)
Expand Down
4 changes: 2 additions & 2 deletions wallabag.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 7.0.1;
MARKETING_VERSION = 7.0.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1341,7 +1341,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 7.0.1;
MARKETING_VERSION = 7.0.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;
Expand Down

0 comments on commit d4defcd

Please sign in to comment.