# PlaceMarkerHostingView

    @MainActor
    @objc
    final class PlaceMarkerHostingView

    extension PlaceMarkerHostingView : CALayerDelegate, CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Equatable, Hashable, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIPopoverPresentationControllerSourceItem, UIResponderStandardEditActions, UITraitChangeObservable, UITraitEnvironment, UIUserActivityRestoring, __UITraitChangeObservable

A `UIView` subclass that hosts a SwiftUI `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceMarker.html` inside a `UIHostingController`
and dynamically sizes itself for use as a `GMSMarker.iconView`.
- `


  ### [accessibilityLabel](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlaceMarkerHostingView#/c:@M@GooglePlacesSwift@objc(cs)PlaceMarkerHostingView(py)accessibilityLabel)


  `

  #### Declaration

  Swift

      @MainActor
      override final var accessibilityLabel: String? { get set }

- `


  ### [didMoveToWindow()](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlaceMarkerHostingView#/c:@M@GooglePlacesSwift@objc(cs)PlaceMarkerHostingView(im)didMoveToWindow)


  `

  #### Declaration

  Swift

      @MainActor
      override final func didMoveToWindow()

- `


  ### [init(marker:)](https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Classes/PlaceMarkerHostingView#/s:17GooglePlacesSwift22PlaceMarkerHostingViewC6markerAcA0dE0V_tcfc)


  ` Initializes a new `PlaceMarkerHostingView` hosting the specified `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceMarker.html`.

  #### Declaration

  Swift

      @MainActor
      convenience init(marker: https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceMarker.html)

  #### Parameters

  |---|---|
  | ` marker ` | The `https://developers.google.com/maps/documentation/places/ios-sdk/reference/swift/Structs/PlaceMarker.html` to host. |