Building a continuous Bluetooth beacon scanning app in Swift for iOS