Skip to content

Commit 8b1e4cf

Browse files
committed
chore: run swift-format
1 parent 30c6c10 commit 8b1e4cf

File tree

8 files changed

+21
-22
lines changed

8 files changed

+21
-22
lines changed

Sources/ActivityClient/Live.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ extension ActivityClient: DependencyKey {
1616
)
1717
}
1818
}
19-

Sources/App/SiteMiddleware.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ private struct NotFoundMiddleware<Context: RequestContext>: RouterMiddleware {
8585
}
8686
}
8787

88-
private extension Metadata {
89-
static func `default`() -> Metadata {
88+
extension Metadata {
89+
fileprivate static func `default`() -> Metadata {
9090
@Dependency(\.publicAssets) var assets
9191

9292
return Metadata(
@@ -101,7 +101,7 @@ private extension Metadata {
101101
extension CodeLang {
102102
fileprivate static func resolve(_ req: Request) -> CodeLang {
103103
req.uri.queryParameters["codeLang"]
104-
.flatMap {
104+
.flatMap {
105105
CodeLang(rawValue: $0.trimmingCharacters(in: .whitespacesAndNewlines).lowercased())
106106
} ?? .markdown
107107
}

Sources/Pages/Components/Icons/NavigationArrowIcon.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ struct NavigationArrowIcon: HTML {
2323
.svgIconStyling()
2424
.inlineStyle("margin-right", "0.25rem")
2525
}
26-
}
26+
}

Sources/Pages/Components/Icons/SVG+.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ extension HTML {
99
.inlineStyle("width", "1em")
1010
.inlineStyle("height", "1em")
1111
}
12-
}
12+
}

Sources/Pages/Components/Icons/WaveformIcon.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ struct WaveFormIcon: HTML {
1818
.svgIconStyling()
1919
.inlineStyle("margin-right", "0.25rem")
2020
}
21-
}
21+
}

Sources/Pages/Models/Post+AllCases.swift

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ extension Post: CaseIterable {
3131
kind: .project,
3232
links: [
3333
.init(
34-
title: "PrismUI on GitHub",
34+
title: "PrismUI on GitHub",
3535
href: "https://github.com/erikbdev/PrismUI",
3636
role: .primary
3737
),
3838
.init(
39-
title: "SSKeyboardHue on GitHub",
39+
title: "SSKeyboardHue on GitHub",
4040
href: "https://github.com/erikbdev/SSKeyboardHue",
4141
role: .secondary
42-
)
42+
),
4343
]
4444
),
4545
Self(
@@ -49,7 +49,7 @@ extension Post: CaseIterable {
4949
),
5050
title: "Anime Now! \u{2014} An iOS and macOS App",
5151
content: """
52-
52+
5353
""",
5454
date: Date(month: 9, day: 15, year: 2022),
5555
kind: .project
@@ -62,7 +62,7 @@ extension Post: CaseIterable {
6262
kind: .project,
6363
links: [
6464
.init(
65-
title: "Mochi Website",
65+
title: "Mochi Website",
6666
href: "https://mochi.erikb.dev",
6767
role: .primary
6868
)
@@ -106,17 +106,17 @@ extension Post: CaseIterable {
106106
Self(
107107
title: "XTool is Awesome",
108108
content: """
109-
[xtool](https://github.com/xtool-org/xtool) is a tool that attempts to replace Xcode and use Swift Package Manager to \
110-
build and deploy iOS apps on macOS, Linux, and Windows! \
111-
I have been working closely with the developer to support for App Extensions and also resolve additional issues.
109+
[xtool](https://github.com/xtool-org/xtool) is a tool that attempts to replace Xcode and use Swift Package Manager to \
110+
build and deploy iOS apps on macOS, Linux, and Windows! \
111+
I have been working closely with the developer to support for App Extensions and also resolve additional issues.
112112
113-
I hope to also replace "AppleProductTypes", a library used to build iOS and macOS apps using Swift Playgrounds, in favor of \
114-
"XToolProductTypes."
115-
""",
113+
I hope to also replace "AppleProductTypes", a library used to build iOS and macOS apps using Swift Playgrounds, in favor of \
114+
"XToolProductTypes."
115+
""",
116116
date: Date(month: 7, day: 20, year: 2025),
117117
kind: .blog,
118118
hidden: true
119-
)
119+
),
120120
]
121121
.sorted { $0.date < $1.date }
122122
.filter { !$0.hidden }

Sources/Pages/Page.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import HTML
22

33
public protocol Page: AsyncHTML, Sendable {
44
var title: String { get }
5-
}
5+
}

Sources/Pages/Utils/PageLayout+ResponseGenerator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension PageLayout: ResponseGenerator {
1616
) -> Response {
1717
Response(
1818
status: status,
19-
headers: [.contentType: "text/html; charset=utf-8"],
19+
headers: [.contentType: "text/html; charset=utf-8"],
2020
body: ResponseBody { [self] writer in
2121
var htmlWriter = AsyncHTMLWriter(writer: &writer, chunkSize: 1024)
2222
try await self.render(into: &htmlWriter)
@@ -58,4 +58,4 @@ private struct AsyncHTMLWriter: AsyncHTMLOutputStream {
5858
try await writer.pointee.finish(nil)
5959
buffer.clear()
6060
}
61-
}
61+
}

0 commit comments

Comments
 (0)