# Tab Views

In Hack Challenges for previous semesters, many students had app ideas that involved tabs: a home page, a profile page, and everything else between. This document walks through how you can set up the UI and logic for a funcional tab view.&#x20;

#### UIKit Setup

{% content-ref url="/pages/ribdXAb3YgpLynD4Eaex" %}
[UITabBarController](/resources/tool-guides/tab-views/uitabbarcontroller.md)
{% endcontent-ref %}

#### SwiftUI Setup

{% content-ref url="/pages/zQbVIFTxrbRnwGMZWJmt" %}
[TabView](/resources/tool-guides/tab-views/tabview.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ios-course.cornellappdev.com/resources/tool-guides/tab-views.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
