---
title: "init(initialValue:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/published/init(initialvalue:)"
---

# init(initialValue:)

Creates the published instance with an initial value.

## Declaration

```swift
init(initialValue: Value)
```

## Parameters

- `initialValue`: The publisher’s initial value.

## Discussion

Discussion Don’t use this initializer directly. Instead, create a property with the @Published attribute, as shown here: @Published var lastUpdated: Date = Date()

## See Also

### Creating a published instance

- [init(wrappedValue:)](combine/published/init(wrappedvalue:).md)
