Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Swift 3
- func setupBeaconRegions() {
- // Use the .filterDuplicates function on an array of beacons to create a new array of only unique UUID's
- let beaconRegions: [iBeaconItem] = iBeacons.filterDuplicates { $0.uuid == $1.uuid && $0.uuid == $1.uuid }
- // Iterate through new array of unique UUIDs and start ranging those
- for beacon in beaconRegions {
- startRangingBeacon(beacon)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement