---
title: "decodeIfPresent(_:configuration:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/unkeyeddecodingcontainer/decodeifpresent(_:configuration:)-3i2jl"
---

# decodeIfPresent(_:configuration:)

## Declaration

```swift
mutating func decodeIfPresent<T, C>(_: T.Type, configuration: C.Type) throws -> T? where T : DecodableWithConfiguration, C : DecodingConfigurationProviding, T.DecodingConfiguration == C.DecodingConfiguration
```
