Skip to content

Commit

Permalink
Modified problematic views to conform to Dark Mode
Browse files Browse the repository at this point in the history
Dark Mode ready app
  • Loading branch information
martin-headspace committed Feb 19, 2020
1 parent dcbdf1c commit da46cf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion FlinkChallenge/FlinkChallenge/Views/CardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ struct Card: View {

}.padding(.horizontal)
}.padding(.bottom)
.background()
.background(Color.systemGray6)
.cornerRadius(10)
.shadow(radius: 5)
}
Expand Down
8 changes: 5 additions & 3 deletions FlinkChallenge/FlinkChallenge/Views/CharacterDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct DataCard : View {
}.padding()
}.padding().frame(width: 300, height: 500, alignment: .center)
}
.background(Color.white)
.background(Color.systemGray6)
.cornerRadius(10)
.shadow(radius: 5)
.padding(.bottom)
Expand All @@ -106,7 +106,7 @@ struct EpisodeView : View {
Text("(\(episode.episode!))").font(.caption)
}
.frame(width: 300, height: 100, alignment: .center)
.background(Color.white)
.background(Color.systemGray6)
.cornerRadius(10)
.shadow(radius: 5)
.padding()
Expand Down Expand Up @@ -139,7 +139,9 @@ struct CharacterDetail: View {
MainCharacterAttributes(character: character)
}.padding()
DataCard(character: character)
Text("Episodes").font(.title).bold()
if episodes.count != 0 {
Text("Episodes").font(.title).bold()
}
ScrollView {
VStack {
ForEach (episodes ,id: \.id) { episode in
Expand Down

0 comments on commit da46cf2

Please sign in to comment.