Skip to content

Commit

Permalink
add: public
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Jun 29, 2023
1 parent f861092 commit d898892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/TsuzuKit/Utils/HapticFeedback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ import CoreHaptics

#if os(iOS)
public enum HapticFeedback {
static func notice(type: UINotificationFeedbackGenerator.FeedbackType) {
public static func notice(type: UINotificationFeedbackGenerator.FeedbackType) {
let generator = UINotificationFeedbackGenerator()
generator.prepare()
generator.notificationOccurred(type)
}

static func impact(style: UIImpactFeedbackGenerator.FeedbackStyle) {
public static func impact(style: UIImpactFeedbackGenerator.FeedbackStyle) {
let generator = UIImpactFeedbackGenerator(style: style)
generator.prepare()
generator.impactOccurred()
}

static func selection() {
public static func selection() {
let generator = UISelectionFeedbackGenerator()
generator.prepare()
generator.selectionChanged()
Expand Down

0 comments on commit d898892

Please sign in to comment.