 import Foundation
+import CoreMotion
 
 public protocol BubblesViewDataSource {
     func focusedBubble() -> Int

    // MARK: Gesture Recognizers
    func didTapBubble(recognizer: UITapGestureRecognizer){
        let target = recognizer.view as! BubbleView
        delegate?.didSelectBubble(target.index!)
    }

    func didPanBubble(recognizer: UIPanGestureRecognizer) {

    public override func layoutSubviews() {
        if let focused = focusedBubble {
            // Snap the bubble to the new center
            focusedSnap?.snapPoint = center
        }
    }

