We have used this code lots of times in our objective c app that supports iOS 7 devices.
NSArray* paths = NSSearchPathForDirectoriesInDomains(searchPath, NSUserDomainMask, YES);
NSString* documentsDirectory = [paths firstObject];
And in our objective c app, the documentations show that this API was available since iOS 2.0
We are porting our project to Swift from scratch and there the same API is available since iOS 8.
I created a new swift test project that would support iOS 7 and used this API and it worked. Now I am confused, why in Swift project, the Api is available since iOS 8.0 but still running on iOS 7.0. May be the documentations are wrong. But this is the way we have been checking the availability. If this is not trustworthy it would take lots of time to verify API availability via other sources.