Skip to content

Commit

Permalink
Added visionOS compability.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Sep 27, 2023
1 parent b6ea9bb commit eec32c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import SwiftUI

#if canImport(WidgetKit)
import WidgetKit

@available(watchOS 9.0, macOS 11.0, *)
Expand All @@ -12,3 +14,5 @@ extension WidgetConfiguration {
}
}
}
#endif

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import SwiftUI

#if canImport(WidgetKit)
import WidgetKit

extension View {
Expand Down Expand Up @@ -46,4 +48,6 @@ struct ContainerBackgroundForWidgetModifier<Background>: ViewModifier where Back
}
}
}
}
}

#endif

0 comments on commit eec32c3

Please sign in to comment.