---
title: "init(location:)"
framework: xcuiautomation
role: symbol
role_heading: Initializer
path: "xcuiautomation/xcuilocation/init(location:)"
---

# init(location:)

Initializes a proxy that simulates latitude, longitude, and course information based on the location object you provide.

## Declaration

```swift
init(location: CLLocation)
```

## Parameters

- `location`: The doc://com.apple.documentation/documentation/CoreLocation/CLLocation object that contains the latitude, longitude, and course information for this proxy.
