From 342180b9a1c3ce7991b7ff62a59751793ba0e18e Mon Sep 17 00:00:00 2001 From: Aurelius Prochazka Date: Tue, 15 Mar 2022 23:58:10 -0700 Subject: [PATCH] Fixed broken merge --- Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift | 1 - Sources/AudioKitUI/Visualizations/FFTView.swift | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift b/Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift index 7b240e7..cd4b11e 100644 --- a/Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift +++ b/Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift @@ -6,7 +6,6 @@ import AudioKit import SwiftUI -#if !os(macOS) || targetEnvironment(macCatalyst) #if os(iOS) struct DeviceRotationViewModifier: ViewModifier { diff --git a/Sources/AudioKitUI/Visualizations/FFTView.swift b/Sources/AudioKitUI/Visualizations/FFTView.swift index 8ec2e2d..c78d24f 100644 --- a/Sources/AudioKitUI/Visualizations/FFTView.swift +++ b/Sources/AudioKitUI/Visualizations/FFTView.swift @@ -116,7 +116,7 @@ public struct FFTView: View { public var body: some View { HStack(spacing: 0.0) { - ForEach(0 ..< barCount, id: \.self) { + ForEach(0 ..< barCount, id: \.self) { if $0 < fft.amplitudes.count { if let amplitude = fft.amplitudes[$0] { AmplitudeBar(amplitude: amplitude,