Tokamak icon indicating copy to clipboard operation
Tokamak copied to clipboard

Support `@main` entry points

Open MaxDesiatov opened this issue 3 years ago • 1 comments

It's currently blocked by the upstream lack of support for this in SwiftPM, see https://bugs.swift.org/browse/SR-12683 and https://swiftpm.slack.com/archives/C14QU6CUU/p1594734422189300 for more details

MaxDesiatov avatar Jul 20 '20 20:07 MaxDesiatov

~It looks like that might be unrelated — it’s about not being able to use @main at all in single-file Swift things, not overriding @main on a custom class.~ oh I see you just have to define public static func main() on whatever gets the @main. Neat!

j-f1 avatar Jul 20 '20 20:07 j-f1