Added option for animating segment indicator using spring in iOS 7 or later