Feature detection instead of checking iOS version