From ee3bbf420c31444ab910a9fba9c6e0c2ab2893d6 Mon Sep 17 00:00:00 2001 From: Fernando Martin Garcia Del Angel Date: Wed, 19 Feb 2020 15:59:05 -0600 Subject: [PATCH] Added Tab Icons Added Tab Icons for TabView --- FlinkChallenge/FlinkChallenge/Views/CardView.swift | 3 +-- .../FlinkChallenge/Views/ContentView.swift | 12 ++++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/FlinkChallenge/FlinkChallenge/Views/CardView.swift b/FlinkChallenge/FlinkChallenge/Views/CardView.swift index 05090ca..ba0ea31 100644 --- a/FlinkChallenge/FlinkChallenge/Views/CardView.swift +++ b/FlinkChallenge/FlinkChallenge/Views/CardView.swift @@ -29,8 +29,7 @@ struct Card: View { .foregroundColor(.gray) } Spacer() - Image(systemName: "info.circle") - .foregroundColor(.gray) + }.padding(.horizontal) }.padding(.bottom) .background(Color.white) diff --git a/FlinkChallenge/FlinkChallenge/Views/ContentView.swift b/FlinkChallenge/FlinkChallenge/Views/ContentView.swift index 36cf434..9722af7 100644 --- a/FlinkChallenge/FlinkChallenge/Views/ContentView.swift +++ b/FlinkChallenge/FlinkChallenge/Views/ContentView.swift @@ -16,7 +16,11 @@ struct ContentView: View { }.accentColor(Color(red: 0, green: 0.6, blue: 0.6)) .tag(0) .tabItem { - Text("Characters") + VStack { + Image(systemName: "person.circle.fill") + .foregroundColor(.gray) + Text("Advanced Search") + } } NavigationView { @@ -24,7 +28,11 @@ struct ContentView: View { } .tag(1) .tabItem { - Text("Advanced Search") + VStack { + Image(systemName: "magnifyingglass.circle.fill") + .foregroundColor(.gray) + Text("Advanced Search") + } } } }