mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 08:41:44 +00:00
style(swift): run swiftformat + swiftlint autocorrect
This commit is contained in:
@@ -11,7 +11,9 @@ struct TranscriptTextView: NSViewRepresentable {
|
||||
var onEndEditing: () -> Void
|
||||
var onSend: () -> Void
|
||||
|
||||
func makeCoordinator() -> Coordinator { Coordinator(self) }
|
||||
func makeCoordinator() -> Coordinator {
|
||||
Coordinator(self)
|
||||
}
|
||||
|
||||
func makeNSView(context: Context) -> NSScrollView {
|
||||
let textView = TranscriptNSTextView()
|
||||
@@ -77,7 +79,9 @@ struct TranscriptTextView: NSViewRepresentable {
|
||||
var parent: TranscriptTextView
|
||||
var isProgrammaticUpdate = false
|
||||
|
||||
init(_ parent: TranscriptTextView) { self.parent = parent }
|
||||
init(_ parent: TranscriptTextView) {
|
||||
self.parent = parent
|
||||
}
|
||||
|
||||
func textDidBeginEditing(_ notification: Notification) {
|
||||
self.parent.onBeginEditing()
|
||||
@@ -147,7 +151,9 @@ private final class ClickCatcher: NSView {
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") }
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func mouseDown(with event: NSEvent) {
|
||||
super.mouseDown(with: event)
|
||||
|
||||
Reference in New Issue
Block a user