getting-started-swiftui
getting-started-swiftui copied to clipboard
Fix Swift 6 compilation issue
this doesn't fix :(
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