TabView in SwiftUI with Dark Mode

Varun Singhal
2 min readSep 30, 2020

--

First we create New Project and Select SwiftUI as Interface .

Second Step You create New File Used in Tab Bar

Third step is set up TabBar File and icon

You need to create Enum

extension AppTabNavigation {

enum Tab {

case First

case Second

}

}

where First and Second is my File Name . Then we set up code for tab bar

Next step is set AccentColor where you find in Asset.xcasset

Then we are good to go run the Project

This is the Tabview final screen.

For Dark Mode set Accent Color

--

--

Varun Singhal
Varun Singhal

Written by Varun Singhal

React Native/iOS Developer (Mobile App Developer)

No responses yet