view GeoQuiz/Logic/Haptics.swift @ 7:d945e52b0704

implement dynamic map
author Dennis C. M. <dennis@denniscm.com>
date Tue, 04 Oct 2022 18:54:24 +0200
parents 413e2d21333e
children 3540c7efc216
line wrap: on
line source

//
//  Haptics.swift
//  GeoQuiz
//
//  Created by Dennis Concepción Martín on 18/9/22.
//

import Foundation
import SwiftUI

func hapticSuccess() {
    let generator = UINotificationFeedbackGenerator()
    generator.notificationOccurred(.success)
}

func hapticError() {
    let generator = UINotificationFeedbackGenerator()
    generator.notificationOccurred(.error)
}