---
title: "buildEither(second:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/attributedtextformatting/definitionbuilder/buildeither(second:)"
---

# buildEither(second:)

## Declaration

```swift
static func buildEither<T, F>(second: F) -> _ConditionalContent<T, F> where Scope == T.Scope, T : AttributedTextFormattingDefinition, F : AttributedTextFormattingDefinition, T.Scope == F.Scope
```
