A simple example that shows how to write a X11 app on Linux in Swift using the new package manager
Swift
Latest commit abb2d58 Dec 8, 2015 @terhechte Added screenshot
Permalink
Failed to load latest commit information.
.gitignore Initial commit Dec 8, 2015
LICENSE Initial commit Dec 8, 2015
Package.swift Initial Import Dec 8, 2015
README.md Added screenshot Dec 8, 2015
main.swift Better window / text Dec 8, 2015
screenshot.png Added screenshot Dec 8, 2015

README.md

swift-x11-example

A simple example that shows how to write a X11 app on Linux in Swift using the new package manager

Requirements

  • Swift needs to be installed on your Linux system. The binary distribution from Swift.org is enough, you don't need to build it yourself.
  • The swift command should also be somewhere in your $PATH

Running

To use this, simply check out the repo (preferrably on Linux) and do the following in the folder:

swift build

This will clone the CX11.swift package and build the binary

Run it via:

.build/debug/swift-x11-example

This will execute the binary, and a small X11 Window should appear on your desktop:

Ubuntu Screenshot