Available space on iOS device?

I’ve done an App that allows users to buy levels via IAP; is there a way to check if the device has enough storage space before loading the levels ?

yeah tahts no problem, 한국 아이폰 should get you stored, all you need to do then is create 2 functions to fetch the 2 numbers and return them as long