# iOSEditor in Processing

**URL:** <https://discourse.processing.org/t/ioseditor-in-processing/47672>\
**Category:** Gallery\
**Created:** [December 29, 2025, 8:31pm UTC](https://discourse.processing.org/t/ioseditor-in-processing/47672 "2025-12-29T20:31:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [December 29, 2025, 8:31pm UTC](https://discourse.processing.org/t/ioseditor-in-processing/47672/1 "2025-12-29T20:31:33Z")

</div>

Editors created in Processing are capable of running several different computer languages; basically if there is a compiler for a language, a Processing editor app can run the source code for that language. The following is a **MacOS only** demonstration of this. It uses _swiftc_ from the command line to compile _.swift_ source code for an iOS app and then runs the code on a simulator provided by XCode (installation required). It also requires two .jar files: one for Info.plist creation and one for editor syntax highlighting. Details and source code are here: [https://github.com/vsquared/iOSEditor\_Processing](https://github.com/vsquared/iOSEditor_Processing)

**Output:**

 ![yellow](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/8/6/86bed9e8911426212567c66ad45e055f4395b49d.jpeg)

**Addendum:**

Will also run SwiftUI code in addition to UIKit:

```processing
import SwiftUI

struct ContentView: View {
    var body: some View {
        Circle()
        .fill(.blue)
        .padding()
        .overlay(
            Image(systemName: "figure.basketball")
                .font(.system(size: 144))
                .foregroundColor(.white)
        )
    }
}

struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

MyApp.main()

```

**Output:**

 ![sui](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/3/a/3a4c5e6fc1ae1a64fbcd950e25ceeb947aa01fb5.jpeg)
