Broadcasting and Detecting iBeacons in Swift 6

Or: how I got tired of carrying around little Bluetooth pucks and turned my iPhone into one instead.