How would I get rid of ios app offloading?

Settings > App Store and iTunes > Offload unused apps. Turn it off.