Jon Hoffman created a Swift library for interacting with the GPIO, PWM and Analog pins on the BeagleBone Black:
Jon used SwiftyBones to develop BuddyBot, the first robot programmed in the Swift:
Learn more about Swift in in Jon’s book:
Mastering Swift 3 – Linux
Learn to build fast and robust applications on the Linux Platform with Swift