I am working on a project where I need ViewController to show Google Map to indicate the location of Property and many other objects like table view and collection view to show JSON Data on the same view controller.
Problem: This ViewController taking memory near about 72 MB and when I debug the code to check why it's taking much memory then I have observed Google Map is the reason. If I removed the Google map then its only took 15 MB space, however, I have created other view controller in which I took only UIView and gave it type GMSMapView and when I run the code it was taking near 70 MB memory.
Is it normal behavior of google map? As I haven't written any code just assigned the type GMSMapView to UIView and it was taking a huge memory.
I need a solution to decrease this memory problem. Can anybody suggest how we can do that in the case of Google map?
Please note: I haven't written any code for Google MapView, just assigned the GMSMapView type to UIView and memory jump to near 70 MB and above.