# TiltControl

    @MainActor
    @preconcurrency
    struct TiltControl

    extension TiltControl : MapControl, Sendable, SendableMetatype, View

A control that allows the user to tilt the map.

    Map(mode: .hybrid)
      .mapControls {
        TiltControl()
      }

- `


  ### [Body](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/TiltControl#/s:12GoogleMaps3D11TiltControlV4Bodya)


  ` The type of view representing the body of this view.

  When you create a custom view, Swift infers this type from your
  implementation of the required `View/body-swift.property` property.

  #### Declaration

  Swift

      typealias Body = some View

- `


  ### [body](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/TiltControl#/s:12GoogleMaps3D11TiltControlV4bodyQrvp)


  ` The content and behavior of the view.

  When you implement a custom view, you must implement a computed
  `body` property to provide the content for your view. Return a view
  that's composed of built-in views that SwiftUI provides, plus other
  composite views that you've already defined:

      struct MyView: View {
          var body: some View {
              Text("Hello, World!")
          }
      }

  For more information about composing views and a view hierarchy,
  see <doc:Declaring-a-Custom-View>.

  #### Declaration

  Swift

      @MainActor
      @preconcurrency
      var body: some View { get }

- `


  ### [init(orientation:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/TiltControl#/s:12GoogleMaps3D11TiltControlV11orientationAcA03MapD11OrientationO_tcfc)


  ` Initializes the control with an optional orientation.

  #### Declaration

  Swift

      @MainActor
      @preconcurrency
      init(orientation: https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Enums/MapControlOrientation.html = .auto)

  #### Parameters

  |---|---|
  | ` orientation ` | A `https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Enums/MapControlOrientation.html` value that indicates whether the control is oriented horizontally or vertically. If `.auto`, the layout is determined by the control's placement within the map. |