> For the complete documentation index, see [llms.txt](https://ryukiedev.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryukiedev.gitbook.io/wiki/swiftui/07.tabview-shi-yong.md).

# 07.TabView使用

<https://www.hackingwithswift.com/books/ios-swiftui/creating-tabs-with-tabview-and-tabitem>

### 切圆角

```
.cornerRadius(14)
.clipShape(Capsule())
```

### 导航栏形式

默认大标题

```
.navigationBarTitleDisplayMode( xx )

/**
/// Inherit the display mode from the previous navigation item.
case automatic

/// Display the title within the standard bounds of the navigation bar.
case inline

/// Display a large title within an expanded navigation bar.
case large
*/
```
