Skip to content

Commit

Permalink
Updated os name
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Jan 18, 2024
1 parent 39272ae commit 9e8833d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Models/WhatsNew+HapticFeedback.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public extension WhatsNew {

/// The WhatsNew HapticFeedback
enum HapticFeedback: Hashable {
#if os(iOS) && !os(xrOS)
#if os(iOS) && !os(visionOS)
/// Impact HapticFeedback
case impact(
style: UIImpactFeedbackGenerator.FeedbackStyle? = nil,
Expand All @@ -32,7 +32,7 @@ public extension WhatsNew.HapticFeedback {

/// Call HapticFeedback as function to execute the HapticFeedback
func callAsFunction() {
#if os(iOS) && !os(xrOS)
#if os(iOS) && !os(visionOS)
switch self {
case .impact(let style, let intensity):
let feedbackGenerator = style.flatMap(UIImpactFeedbackGenerator.init) ?? .init()
Expand Down

0 comments on commit 9e8833d

Please sign in to comment.