style(swift): run swiftformat + swiftlint autocorrect

This commit is contained in:
Peter Steinberger
2026-02-15 05:38:07 +01:00
parent 511ba938fb
commit 8725c2b19f
101 changed files with 771 additions and 482 deletions

View File

@@ -1,9 +1,9 @@
import AppKit
import Combine
import Observation
import OpenClawChatUI
import OpenClawDiscovery
import OpenClawIPC
import Combine
import Observation
import SwiftUI
enum UIStrings {
@@ -142,18 +142,30 @@ struct OnboardingView: View {
Self.pageOrder(for: self.state.connectionMode, showOnboardingChat: self.showOnboardingChat)
}
var pageCount: Int { self.pageOrder.count }
var pageCount: Int {
self.pageOrder.count
}
var activePageIndex: Int {
self.activePageIndex(for: self.currentPage)
}
var buttonTitle: String { self.currentPage == self.pageCount - 1 ? "Finish" : "Next" }
var wizardPageOrderIndex: Int? { self.pageOrder.firstIndex(of: self.wizardPageIndex) }
var buttonTitle: String {
self.currentPage == self.pageCount - 1 ? "Finish" : "Next"
}
var wizardPageOrderIndex: Int? {
self.pageOrder.firstIndex(of: self.wizardPageIndex)
}
var isWizardBlocking: Bool {
self.activePageIndex == self.wizardPageIndex && !self.onboardingWizard.isComplete
}
var canAdvance: Bool { !self.isWizardBlocking }
var canAdvance: Bool {
!self.isWizardBlocking
}
var devLinkCommand: String {
let version = GatewayEnvironment.expectedGatewayVersionString() ?? "latest"
return "npm install -g openclaw@\(version)"