Skip to content

Commit 157119d

Browse files
Fix multiline string interpolation compile error in ContentView
String interpolation cannot span multiple lines in Swift. Removed the unnecessary "\(...)" wrapper since Exporter.toText/toJSON already return String. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0c1d98a commit 157119d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Pika/Views/ContentView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ struct ContentView: View {
6969
}
7070
.onReceive(NotificationCenter.default.publisher(for: .triggerCopyText)) { _ in
7171
pasteboard.clearContents()
72-
let contents = "\(Exporter.toText(
72+
let contents = Exporter.toText(
7373
foreground: eyedroppers.foreground, background: eyedroppers.background,
74-
style: copyFormat))"
74+
style: copyFormat)
7575
pasteboard.setString(contents, forType: .string)
7676
}
7777
.onReceive(NotificationCenter.default.publisher(for: .triggerCopyData)) { _ in
7878
pasteboard.clearContents()
79-
let contents = "\(Exporter.toJSON(
79+
let contents = Exporter.toJSON(
8080
foreground: eyedroppers.foreground, background: eyedroppers.background,
81-
style: copyFormat))"
81+
style: copyFormat)
8282
pasteboard.setString(contents, forType: .string)
8383
}
8484
}

0 commit comments

Comments
 (0)