summaryrefslogtreecommitdiff
path: root/Hutch/Views/Pastes
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-13 20:32:40 -0500
committerChristian Cleberg <[email protected]>2026-04-13 20:32:40 -0500
commitd6968ea122d910b432bd539cf2fa3d1cee962fdb (patch)
treeb5fe9a85880d2a153a2a9d4ee8f1ab2156f64d25 /Hutch/Views/Pastes
parent312e535f400f31714b3750de5222a1f6a8e5bcda (diff)
downloadhutch-3.1.5.tar.gz
hutch-3.1.5.tar.bz2
hutch-3.1.5.zip
fix: more sonarqube quality fixesv3.1.5
Diffstat (limited to 'Hutch/Views/Pastes')
-rw-r--r--Hutch/Views/Pastes/PasteListView.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/Hutch/Views/Pastes/PasteListView.swift b/Hutch/Views/Pastes/PasteListView.swift
index 17bb8ac..b325153 100644
--- a/Hutch/Views/Pastes/PasteListView.swift
+++ b/Hutch/Views/Pastes/PasteListView.swift
@@ -276,14 +276,14 @@ private struct CreatePasteSheet: View {
NavigationStack {
Form {
Section("Files") {
- ForEach($files) { $file in
+ ForEach($files) { fileBinding in
VStack(alignment: .leading, spacing: 8) {
- TextField("Filename (optional)", text: $file.filename)
+ TextField("Filename (optional)", text: fileBinding.filename)
.autocorrectionDisabled()
.textInputAutocapitalization(.never)
ZStack(alignment: .topLeading) {
- if file.contents.isEmpty {
+ if fileBinding.wrappedValue.contents.isEmpty {
Text("Paste contents")
.foregroundStyle(.tertiary)
.padding(.top, 8)
@@ -291,7 +291,7 @@ private struct CreatePasteSheet: View {
.allowsHitTesting(false)
}
- TextEditor(text: $file.contents)
+ TextEditor(text: fileBinding.contents)
.font(.system(.body, design: .monospaced))
.frame(minHeight: 180)
}