I'm messing about with the new Look Around APIs in iOS 16, and can't seem to find a way to do a few things:
- Hide the current location label that shows up at the bottom of the Look Around view
- Go straight into the Look Around view rather than having to tap into it with the button
- Overlay a view on top of the Look Around view when panning/movement is active (the view seems to take highest priority and I cannot override it)
- Get it running on MacOS (as an iPad app)
struct LookAroundView: UIViewControllerRepresentable {
func makeUIViewController(context: Context) -> some UIViewController {
let viewController = MKLookAroundViewController()
viewController.badgePosition = .topLeading
viewController.isNavigationEnabled = true
viewController.pointOfInterestFilter = .excludingAll
viewController.showsRoadLabels = false
viewController.title = "Round 1"
let location = CLLocationCoordinate2D(
latitude: 37.80770,
longitude: -122.47207
)
let sceneRequest = MKLookAroundSceneRequest(coordinate: location)
Task {
do {
viewController.scene = try await sceneRequest.scene
} catch {
viewController.scene = nil
}
}
return viewController
}
func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {
}
}