Bar code scanner for iOS in Swift