     public func close(animated: Bool) {
         contentOffset = closedOffset
         layoutIfNeeded(animated: animated)
+        delegate?.swipeToRevealView(view: self, didClose: animated)
     }
 
     /// Reveal right view

import UIKit
import SnapKit

/// Swipe-to-reveal view
public class SwipeToRevealView: UIView {

    /// Create SwipeToRevealView
    ///

    public func revealRight(animated: Bool) {
        contentOffset = rightRevealedOffset
        layoutIfNeeded(animated: animated)
        delegate?.swipeToRevealView(view: self, didRevealRight: animated)
    }

    // MARK: Subviews
