Geo fencing in iOS swift 4 [on hold]

I need to implement geofencing in iOS swift with custom shapes. But with the radius I can do. But while I see different edges of the construction throughout. Once the user enters the range of latlongs, I must verify. Could you help me?