Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Dec 18, 2023
1 parent 347352a commit 56282c1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:5.5

import PackageDescription

Expand Down
1 change: 0 additions & 1 deletion Sources/Snowplow/VisionOS/Entities/ComponentEntity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// language governing permissions and limitations there under.

import Foundation
import RealityFoundation

/**
Properties for the RealityKit component entity.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
// language governing permissions and limitations there under.

import Foundation

#if canImport(ARKit)
import ARKit
#endif

/// The type of TrackableAnchor.
@objc(SPTrackableAnchorType)
Expand Down Expand Up @@ -51,13 +54,16 @@ public protocol ImageAnchorDetails {
var nameDetails: String? { get }
}

#if canImport(ARKit)
extension ARReferenceImage: ImageAnchorDetails {
public var widthDetails: Double { return self.physicalSize.width }
public var heightDetails: Double { return self.physicalSize.height }
public var descriptionDetails: String { return self.description }
public var nameDetails: String? { return self.name }
}

#endif

/**
Properties for the ARKit trackable anchor entity.
Entity schema: `iglu:com.apple.arkit/trackable_anchor/jsonschema/1-0-0`
Expand Down
3 changes: 1 addition & 2 deletions Tests/TestVisionOSSerialisation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// language governing permissions and limitations there under.

import XCTest
import ARKit
@testable import SnowplowTracker

class TestVisionOSSerialisation: XCTestCase {
Expand Down Expand Up @@ -108,7 +107,7 @@ class TestVisionOSSerialisation: XCTestCase {
func testBuildsWindowEntity() {
let window = WindowEntity(
id: "12345",
title: "window title",
titleKey: "window title",
windowStyle: .automatic
)
let entity = window.data
Expand Down

0 comments on commit 56282c1

Please sign in to comment.