I've created region:
let uuid = UUID(uuidString: "04C7E2F3-42A5-5127-B066-502C8A27EB85")!
beaconRegion = CLBeaconRegion(uuid: uuid, identifier: uuid.uuidString)
And using mbeacon from terminal created beacon from my MacBook.
Creating beacon with mbeacon: screenshot.
In the method didRangeBeacons
this beacon is detected and when I go far from the beacon, proximity increased and then the beacon is disappeared, but didExitRegion
never called. Where is the moment, when this method should be called? Maybe I understand something wrong.