Skip to content

Commit

Permalink
Mark AR samples unavailable on Catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
dfeinzimer committed Nov 1, 2024
1 parent b5be74c commit dd36ec6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ArcGIS
import ArcGISToolkit
import SwiftUI

@available(macCatalyst, unavailable)
struct AugmentRealityToCollectDataView: View {
/// The view model for this sample.
@StateObject private var model = Model()
Expand Down Expand Up @@ -98,6 +99,7 @@ struct AugmentRealityToCollectDataView: View {
}
}

@available(macCatalyst, unavailable)
private extension AugmentRealityToCollectDataView {
@MainActor
class Model: ObservableObject {
Expand Down Expand Up @@ -178,6 +180,7 @@ private extension AugmentRealityToCollectDataView {
}
}

@available(macCatalyst, unavailable)
private extension AugmentRealityToCollectDataView {
/// The health of a tree.
enum TreeHealth: Int16, CaseIterable, Equatable {
Expand All @@ -199,6 +202,8 @@ private extension AugmentRealityToCollectDataView {
}
}

#if !targetEnvironment(macCatalyst)
#Preview {
AugmentRealityToCollectDataView()
}
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import ArcGIS
import ArcGISToolkit
import SwiftUI

@available(macCatalyst, unavailable)
struct AugmentRealityToFlyOverSceneView: View {
/// A scene with an imagery basemap, a world elevation source, and a mesh layer of Girona, Spain.
@State private var scene: ArcGIS.Scene = {
Expand Down Expand Up @@ -59,6 +60,8 @@ private extension URL {
}
}

#if !targetEnvironment(macCatalyst)
#Preview {
AugmentRealityToFlyOverSceneView()
}
#endif

0 comments on commit dd36ec6

Please sign in to comment.