         }
     }
 }
-

    public func generateFeedback() {
        switch self {
            
        case .impact:
            HapticFeedback.impactGenerator.impactOccurred()
            
        case .selection:
            HapticFeedback.selectionGenerator.selectionChanged()

/// An enum describing the different kinds of haptic feedback the taptic engine is capable of producing.
/// For use in `FeedbackEffect`, to give the user feedback when it's desired.
///
/// - impact: Used for calling `UIImpactFeedbackGenerator(impactStyle).impactOccurred()`.
/// - selection: Used for calling `UISelectionFeedbackGenerator().selectionChanged()`.
/// - notification: Used for calling `UINotificationFeedbackGenerator().notificationOccurred(notificationType)`.
public enum HapticFeedback: HapticEmitting {
    
    fileprivate static let lightImpactGenerator = UIImpactFeedbackGenerator()
    fileprivate static let mediumImpactGenerator = UIImpactFeedbackGenerator()
    fileprivate static let heavyImpactGenerator = UIImpactFeedbackGenerator()
    fileprivate static let selectionGenerator = UISelectionFeedbackGenerator()
    fileprivate static let notificationGenerator = UINotificationFeedbackGenerator()
    
    case impact(UIImpactFeedbackStyle)
    case selection
    case notification(UINotificationFeedbackType)
}
