Swift 5 Online IDE & Code Editor for Technical Interviews

Running Swift 5.5 - IntelliSense is enabled

We’re using Apple’s recently open sourced Swift implementation, on a recent Linux snapshot.

XCTest is included by default, but needs to be manually invoked. Here’s a template of how you can do that:

import XCTest class MyTest : XCTestCase { static var allTests = { return [("testGoodNumber", testGoodNumber)] }() func testGoodNumber() { XCTAssertTrue(41 == 42, "The number is wrong") } } XCTMain([testCase(MyTest.allTests)])
Code language: Swift (swift)

Syntax highlighting might be a bit wonky, so please point out any issues via email! We also plan to add REPL support.

Try Our Swift 5 Editor