# Style

    struct Style

Defines the visual style and content of a `https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.html`.
- `


  ### [default](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D/Style#/s:12GoogleMaps3D8Marker3DV5StyleV7defaultAEvpZ)


  ` The default Marker3D style.

  Returns: A standard, pre-configured Marker3D appearance provided by the SDK,

  #### Declaration

  Swift

      static var `default`: https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.html.Style { get }

- `


  ### [image(_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D/Style#/s:12GoogleMaps3D8Marker3DV5StyleV5imageyAE7SwiftUI5ImageVFZ)


  ` Creates a Marker3D from a custom SwiftUI `Image`.

  The provided image will be rendered as the Marker3D's content.

  #### Declaration

  Swift

      static func image(_ image: Image) -> https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.html.Style

  #### Parameters

  |---|---|
  | ` image ` | The SwiftUI `Image` to use for the Marker3D. |

  #### Return Value

  A `Marker3D.Style` instance based on the image.
- `


  ### [pin(_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D/Style#/s:12GoogleMaps3D8Marker3DV5StyleV3pinyAeA3PinV13ConfigurationVFZ)


  ` Creates a pin-style Marker3D with the specified visual configuration.

  This style renders a standard map pin shape, customized with your provided colors, scale, and an optional glyph.

  #### Declaration

  Swift

      static func pin(_ configuration: https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Pin.html.Configuration) -> https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.html.Style

  #### Parameters

  |---|---|
  | ` configuration ` | A `https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Pin/Configuration.html` object defining the pin's appearance. |

  #### Return Value

  A `Marker3D.Style` instance configured as a pin.
- `


  ### [viewSnapshot(_:)](https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D/Style#/s:12GoogleMaps3D8Marker3DV5StyleV12viewSnapshotyAExyXE7SwiftUI4ViewRzlFZ)


  ` Creates a Marker3D by taking a snapshot of a custom SwiftUI `View`.

  This allows for highly customizable Marker3Ds using any combination of SwiftUI views.
  The view hierarchy is rendered into an image and used as the Marker3D's texture.

  Example:

      .viewSnapshot {
      VStack {
      Image(systemName: "star.fill")
      .foregroundStyle(.yellow)
      Text("Favorite")
      .font(.caption)
      }
      .padding(8)
      .background(.blue, in: .capsule)
      }

  #### Declaration

  Swift

      static func viewSnapshot<V>(@ViewBuilder _ content: () -> V) -> https://developers.google.com/maps/documentation/maps-3d/ios-sdk/reference/Structs/Marker3D.html.Style where V : View

  #### Parameters

  |---|---|
  | ` content ` | A `ViewBuilder` closure that returns the view to be rendered into a snapshot as the Marker3D. |

  #### Return Value

  A `Marker3D.Style` instance based on a snapshot of the view.