add ability to filter out direction

Seems like this should go beneath the `#if` below since it won't be used anyway unless `__IPHONE_OS_VERSION_MAX_ALLOWED >= 70000`. Would you agree?