Skip to content

ahmetbostanciklioglu/Bottom_TabView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

📱 Bottom TabView

A concise SwiftUI example of a data-driven bottom tab bar

Platform Swift SwiftUI Xcode Stars Last Commit

📖 Overview

Bottom TabView is a small, runnable SwiftUI learning example that builds a bottom tab bar from a single source of truth. Instead of hardcoding each tab, it drives the layout from a CaseIterable enum, so every tab's title, SF Symbol icon, and page content live in one place. It uses SwiftUI's modern Tab initializer inside a TabView to render three tabs — Home, News, and Share.

✨ Features

  • 🧩 Enum-driven tabs — a Bottom enum conforming to CaseIterable defines every tab in one place.
  • 🔁 Dynamic renderingForEach(Bottom.allCases) generates the tab items automatically, so adding a tab means adding a single case.
  • 🏷️ Per-tab metadata — each case exposes its own title, SF Symbol image name, and page content via computed properties.
  • 📲 Modern SwiftUI API — uses the Tab(_:systemImage:) initializer within a TabView.
  • 🎨 Styled content view — a reusable BottomTabContent view renders each page's text with weight, scale, and foreground styling.

📸 Preview

Bottom TabView screenshot 1 Bottom TabView screenshot 2

🚀 Getting Started

git clone https://github.com/ahmetbostanciklioglu/Bottom_TabView.git
cd Bottom_TabView
open "Bottom tabView.xcodeproj"

Then select a simulator or device in Xcode and press ⌘R to build and run.

📋 Requirements

  • iOS 26.1 or later
  • Xcode 16 or later
  • Swift 5.0

🧑‍💻 Author

Ahmet Bostancıklıoğlu@ahmetbostanciklioglu · ahmetbostancikli@gmail.com

⭐ If this helped you, consider giving the repo a star!

About

A concise SwiftUI example of a data-driven bottom tab bar built from a CaseIterable enum

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages