Skip to content

Commit f4f57ca

Browse files
authored
Update WithPerceptionTracking.swift
1 parent 0ed067c commit f4f57ca

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Sources/PerceptionCore/SwiftUI/WithPerceptionTracking.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,14 @@
219219
}
220220
#endif
221221

222-
// #if canImport(MapKit)
223-
// import MapKit
224-
//
225-
// @available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
226-
// extension WithPerceptionTracking: MapContent where Content: MapContent {
227-
// public init(@MapContentBuilder content: @escaping () -> Content) {
228-
// self.init(content: content())
229-
// }
230-
// }
231-
// #endif
222+
#if canImport(MapKit)
223+
import MapKit
224+
225+
@available(iOS 17, macOS 14, tvOS 17, watchOS 10, *)
226+
extension WithPerceptionTracking: MapContent where Content: MapContent {
227+
public init(@MapContentBuilder content: @escaping () -> Content) {
228+
self.init(content: content())
229+
}
230+
}
231+
#endif
232232
#endif

0 commit comments

Comments
 (0)