---
title: "init(_:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filepath/init(_:)-61dsw"
---

# init(_:)

Creates a file path from a string.

## Declaration

```swift
init(_ string: String)
```

## Parameters

- `string`: A string whose Unicode encoded contents to use as the contents of the path.
