---
title: init()
framework: swiftui
role: symbol
role_heading: Initializer
path: swiftui/stacknavigationviewstyle/init()
---

# init()

Creates a navigation view style represented by a view stack that only shows a single top view at a time.

## Declaration

```swift
init()
```

## Discussion

Discussion Use stack to construct this style.
