Skip to content

Commit

Permalink
Fixing build on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Feb 3, 2022
1 parent 90b4faf commit 058688e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/AudioKitUI/Helpers/AudioKitUIHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import SwiftUI


#if !os(macOS) || targetEnvironment(macCatalyst)
struct DeviceRotationViewModifier: ViewModifier {
let action: (UIDeviceOrientation) -> Void

Expand All @@ -19,7 +21,7 @@ extension View {
self.modifier(DeviceRotationViewModifier(action: action))
}
}

#endif

extension Shape {
@ViewBuilder
Expand Down

0 comments on commit 058688e

Please sign in to comment.