TabSection

A container that you can use to add hierarchy within a tab view.

ComponentiOS 18.0+macOS 15.0+tvOS 18.0+visionOS 2.0+watchOS 11.0+TabSection in SwiftUI

Declaration

React
import { TabSection } from 'swiftui-react-native';
Swift
struct TabSection<Header, Content, Footer, SelectionValue>

Initializers

3 SwiftUI initializers back <TabSection>. The props you pass pick one.

React
<TabSection>
  children?: ReactNode
</TabSection>
Swift
init(
    @TabContentBuilder<SelectionValue> content: () -> Content
)
where Header == EmptyView, Footer == EmptyView
  • childrenReactNode

    TabContent members.

    Swift content: () -> Content

Also takes the common view props: modifiers, style and testID.

See also

More in Navigation.