Bitcoins is a bitcoin library for iOS and OS X written in Swift .