an ios iBeacon implementation in Swift