Skip to main content

NaviagtionSplitView

Displays a Swift UI NaviagtionSplitView

Official Docs

Preview

button preview

Example Usage

 <RNSwiftUI.NavigationSplitView
title="Example App"
optionalSubviews={
<RNSwiftUI.ContentUnavailableView
title="Placheholder Page"
systemIconName="placeholdertext.fill"
description="Select a page from the side menu"
/>
}
>
<RNSwiftUI.List>
<RNSwiftUI.NavigationLink
optionalSubviews={
<RNSwiftUI.Label systemIconName="house" text="Home" />
}
>
<RNSwiftUI.Label systemIconName="house" text="Home" />
</RNSwiftUI.NavigationLink>
<RNSwiftUI.NavigationLink
optionalSubviews={
<RNSwiftUI.Label systemIconName="heart.fill" text="Favorites" />
}
>
<RNSwiftUI.Label systemIconName="heart.fill" text="Favorites" />
</RNSwiftUI.NavigationLink>
<RNSwiftUI.NavigationLink
optionalSubviews={
<RNSwiftUI.Label systemIconName="gear" text="Settings" />
}
>
<RNSwiftUI.Label systemIconName="gear" text="Settings" />
</RNSwiftUI.NavigationLink>
</RNSwiftUI.List>
</RNSwiftUI.NavigationSplitView>

Props

nametyperequireddescription
childrenReact.ReactNodeThe RNSwiftUI view that should be displayed inside the smaller part of the screen
optionalSubviewsReact.ReactNodeThe RNSwiftUI view that should be displayed as a placeholder before selecting a navigationview
titlestringThe navigation title of the smaller view

extends SwiftUIViewProperties