MapKit Look Around API

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:

  1. Hide the current location label that shows up at the bottom of the Look Around view
  2. Go straight into the Look Around view rather than having to tap into it with the button
  3. 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)
  4. 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) {

    }
}
Post not yet marked as solved Up vote post of tanaynistala Down vote post of tanaynistala
1.3k views

Replies

Am having the same complaint regarding your #1 and #2 points. I've filed an enhancement request for #2 along with the fact that its forced to full screen after talking to Apple engineers in a WWDC Lab Session.