One Logo Pool Ball
_MapKit_SwiftUI · IOS API REFERENCE

MapProxy

struct · iOS 17.0+ · SDK 27.1

struct MapProxy

A proxy for accessing sizing information about a given map view.

Members (3)

method · iOS 17.0+

camera

TypeScript
cameraFramingAllowPitch(item: _MapKit_MKMapItem, allowPitch?: boolean): MapCamera
Swift declaration
func camera(framing item: MKMapItem, allowPitch: Bool = true) -> MapCamera

Creates a camera in the context of the map being read that frames the given map item. - Parameters: - item: The map item to frame. - allowPitch: If the camera can be pitched to frame the content.

method · iOS 17.0+

camera

TypeScript
cameraFraming(region: _MapKit_MKCoordinateRegion): MapCamera
Swift declaration
func camera(framing region: MKCoordinateRegion) -> MapCamera

Creates a camera in the context of the map being read that frames the given coordinate region. - Parameter region: The coordinate region to frame.

method · iOS 17.0+

camera

TypeScript
cameraFraming43310(rect: _MapKit_MKMapRect): MapCamera
Swift declaration
func camera(framing rect: MKMapRect) -> MapCamera

Creates a camera in the context of the map being read that frames the given map rect. - Parameter rect: The map rect to frame.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MapProxy.convert(_:from:)

This parameter hides a concrete Swift type.

MapProxy.convert(_:to:)

This parameter hides a concrete Swift type.

All _MapKit_SwiftUI types →