Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Swift
uses: swift-actions/setup-swift@3aed395c5397f62deb91d8fe7af1418a9ae4d16f # v2.1.0
with:
swift-version: "5.10.0"
swift-version: "6.0.2"

- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.10.0
6.0.2
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.10
// swift-tools-version: 6.0

import PackageDescription

Expand Down
2 changes: 1 addition & 1 deletion Sources/ComicSans/ComicSans.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public struct ComicSans {
return result.isEmpty ? nil : result
}

@MainActor public func pngRepresentation(scale: Int = 2) -> Data? {
@MainActor public func pngRepresentation(scale: Int = 2) async -> Data? {
let renderer = ImageRenderer(content: view)
renderer.scale = CGFloat(scale)

Expand Down
4 changes: 2 additions & 2 deletions Sources/CommandLineTool/cs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ struct CommandLineTool: ParsableCommand {
}
}

@MainActor mutating func run() throws {
@MainActor mutating func run() async throws {
let text = try isExpectingPipe ? parsePipeInput() : text

let result = ComicSans(
Expand All @@ -72,7 +72,7 @@ struct CommandLineTool: ParsableCommand {
fileExtension: "png"
)

guard let pngData = result.pngRepresentation() else {
guard let pngData = await result.pngRepresentation() else {
throw ExitCode.failure
}

Expand Down
Loading