Like if I want to create running functional programs that import stuff like AVFoundation and just don’t have the UI/visual side to worry about, is there a way to do that and on iOS/iPhone cuz that’s all I have rn?

  • @seeaya
    link
    26 months ago

    You can use swift package manager to create an executable target, which you can then run on macOS from the command line. Most frameworks (aside from UI) are shared between iOS and macOS like AVFoundation. If you don’t have access to macOS, you can still use swift package manager to build and run code on Linux or Windows, though you unfortunately won’t have access to any Apple frameworks.

  • @vermyndax
    link
    26 months ago

    According to WWDC info released today, Apple is working on some LSP packages for Swift that can make coding with Vscode possible.