support swipe when autolayout