# .navigationBarTitleDisplayMode

## Overview

It should be attached to the form.

**Without**

```swift
struct ContentView: View {
    var body: some View {
        NavigationView {
            Form {
                Section {
                    Text("Hello, world!")
                }
                Section {
                    Text("Hello, world!")
                    Text("Hello, world!")
                }
            }
            .navigationTitle("SwiftUI")
        }
    }
}
```

![](https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FUFoUkX7qp2RMJbvNnXDb%2Fimage.png?alt=media\&token=c182ffec-8179-49dd-87d9-e28a2db19729)

**With**

```swift
struct ContentView: View {
    var body: some View {
        NavigationView {
            Form {
                Section {
                    Text("Hello, world!")
                }
                Section {
                    Text("Hello, world!")
                    Text("Hello, world!")
                }
            }
            .navigationTitle("SwiftUI")
            .navigationBarTitleDisplayMode(.inline)
        }
    }
}
```

![](https://5317963-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F598GXhEFvy2PX7VpZjCw%2Fuploads%2FSquuO8PP5mT7Gwbh8wlV%2Fimage.png?alt=media\&token=4bfce6e6-4ff1-48c0-944d-fe6f4c8466fc)

### Subjects

## Sample Codes

```swift
```

## Sources

### Videos

### Articles / Documents

*
