chore: swiftformat drift + xcode 27 settings leftovers
Format-only pass over spikes, the gate prototype, and three app
files (brace style, wrapping — no semantic change), plus the 4-line
pbxproj alignment finishing the Xcode 27 settings pass (test-target
deployment target parity with 8e70f69).
[Generated by AI]
This commit is contained in:
1 parent
8e70f69945
commit
d722820fc8
17 files changed
+1910
-1791
No files matched your search
@@ -70,7 +70,8 @@ nonisolated enum ProfileBackup {
|
||||
// Age check against the newest existing snapshot (#15: skips record no
|
||||
// state; the normal age check governs retry).
|
||||
if let newest = sortedSnapshots(in: backupsRoot).first,
|
||||
now.timeIntervalSince(newest.timestamp) < snapshotInterval {
|
||||
now.timeIntervalSince(newest.timestamp) < snapshotInterval
|
||||
{
|
||||
return .skippedFresh
|
||||
}
|
||||
|
||||
|
||||
@@ -176,12 +176,12 @@ nonisolated enum ReadingPresenter {
|
||||
/// the bundle without any config).
|
||||
static func styleSheet() -> String {
|
||||
#if DEBUG
|
||||
let repoCSS = URL(fileURLWithPath: #filePath) // …/Museion/ReadingPresenter.swift
|
||||
.deletingLastPathComponent()
|
||||
.appendingPathComponent("Resources/reading.css")
|
||||
if let live = try? String(contentsOf: repoCSS, encoding: .utf8), !live.isEmpty {
|
||||
return live
|
||||
}
|
||||
let repoCSS = URL(fileURLWithPath: #filePath) // …/Museion/ReadingPresenter.swift
|
||||
.deletingLastPathComponent()
|
||||
.appendingPathComponent("Resources/reading.css")
|
||||
if let live = try? String(contentsOf: repoCSS, encoding: .utf8), !live.isEmpty {
|
||||
return live
|
||||
}
|
||||
#endif
|
||||
return Bundle.main.path(forResource: "reading", ofType: "css").flatMap {
|
||||
try? String(contentsOf: URL(fileURLWithPath: $0), encoding: .utf8)
|
||||
|
||||
@@ -162,7 +162,6 @@ struct ReadingSurface: NSViewRepresentable {
|
||||
return blocks.first { $0.sourceRange.location >= caret }?.sourceLine
|
||||
}
|
||||
|
||||
|
||||
// MARK: WKNavigationDelegate
|
||||
|
||||
func webView(_ wv: WKWebView, didFinish _: WKNavigation!) {
|
||||
|
||||
Reference in new issue
Block a user