Don't call didScroll if carousel hasn't moved
Added Swift example
Updated for Xcode 6 beta 4