getting-started-swiftui icon indicating copy to clipboard operation
getting-started-swiftui copied to clipboard

Fix Swift 6 compilation issue

Open romanr opened this issue 1 year ago • 2 comments

Fixes #3


For more details, open the Copilot Workspace session.

romanr avatar Nov 22 '24 01:11 romanr

this doesn't fix :(

Harlech1 avatar Nov 25 '24 16:11 Harlech1

func generate() async throws {
var result = try await StableDiffusion.predict(with: client, input: .init(prompt: prompt))
try await result.wait(with: client)
prediction = result
}

func cancel() async throws {
guard var result = prediction else { return }
try await result.cancel(with: client)
}

this might work though

Harlech1 avatar Nov 25 '24 16:11 Harlech1