Contents

TabNavigator

A container directive that arranges content into a tab-based layout.

Declaration

@TabNavigator {
    @Tab(_ title: String) { ... }
}

Overview

Create a new tab navigator by writing a @TabNavigator directive that contains child @Tab directives.

@TabNavigator {
   @Tab("Powers") {
      ![A diagram with the five sloth power types.](sloth-powers)
   }

   @Tab("Exercise routines") {
      ![A sloth relaxing and enjoying a good book.](sloth-exercise)
   }

   @Tab("Hats") {
      ![A sloth discovering newfound confidence after donning a fedora.](sloth-hats)
   }
}

Topics

See Also

Creating Custom Page Layouts