Skip to content

Commit

Permalink
Deleted modal view
Browse files Browse the repository at this point in the history
Deleted Episode modal view to make the app more consistent
  • Loading branch information
martin-headspace committed Feb 19, 2020
1 parent ee3bbf4 commit 2a96b21
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 38 deletions.
4 changes: 0 additions & 4 deletions FlinkChallenge/FlinkChallenge.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
BD6A5E6E23FCBC01003B1E4D /* CharacterDetailView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6A5E6D23FCBC01003B1E4D /* CharacterDetailView.swift */; };
BD6A5E7123FCEB6C003B1E4D /* EpisodeController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6A5E7023FCEB6C003B1E4D /* EpisodeController.swift */; };
BD6A5E7323FCEBA0003B1E4D /* Episode.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6A5E7223FCEBA0003B1E4D /* Episode.swift */; };
BD6A5E7523FCFD98003B1E4D /* EpisodeModalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6A5E7423FCFD98003B1E4D /* EpisodeModalView.swift */; };
BD6A5E7723FD003A003B1E4D /* SearchBarUIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD6A5E7623FD003A003B1E4D /* SearchBarUIView.swift */; };
BD810CEF23FDB95F00D7853A /* AdvancedFilterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD810CEE23FDB95F00D7853A /* AdvancedFilterView.swift */; };
BD810D3723FDD82B00D7853A /* CharacterFilteringController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD810D3623FDD82B00D7853A /* CharacterFilteringController.swift */; };
Expand Down Expand Up @@ -64,7 +63,6 @@
BD6A5E6D23FCBC01003B1E4D /* CharacterDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CharacterDetailView.swift; sourceTree = "<group>"; };
BD6A5E7023FCEB6C003B1E4D /* EpisodeController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EpisodeController.swift; sourceTree = "<group>"; };
BD6A5E7223FCEBA0003B1E4D /* Episode.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Episode.swift; sourceTree = "<group>"; };
BD6A5E7423FCFD98003B1E4D /* EpisodeModalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EpisodeModalView.swift; sourceTree = "<group>"; };
BD6A5E7623FD003A003B1E4D /* SearchBarUIView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchBarUIView.swift; sourceTree = "<group>"; };
BD810CEE23FDB95F00D7853A /* AdvancedFilterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdvancedFilterView.swift; sourceTree = "<group>"; };
BD810D3623FDD82B00D7853A /* CharacterFilteringController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CharacterFilteringController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -172,7 +170,6 @@
BD6A5E6823FC8F01003B1E4D /* CharacterFeedView.swift */,
BD6A5E6B23FC9ADF003B1E4D /* CardView.swift */,
BD6A5E6D23FCBC01003B1E4D /* CharacterDetailView.swift */,
BD6A5E7423FCFD98003B1E4D /* EpisodeModalView.swift */,
BD6A5E7623FD003A003B1E4D /* SearchBarUIView.swift */,
BD810CEE23FDB95F00D7853A /* AdvancedFilterView.swift */,
BD810D3823FDDC4200D7853A /* CharacterFilterView.swift */,
Expand Down Expand Up @@ -372,7 +369,6 @@
BD810D3723FDD82B00D7853A /* CharacterFilteringController.swift in Sources */,
BD6A5E6C23FC9ADF003B1E4D /* CardView.swift in Sources */,
BD6A5E6923FC8F02003B1E4D /* CharacterFeedView.swift in Sources */,
BD6A5E7523FCFD98003B1E4D /* EpisodeModalView.swift in Sources */,
BD6A5E7323FCEBA0003B1E4D /* Episode.swift in Sources */,
BD6A5E7723FD003A003B1E4D /* SearchBarUIView.swift in Sources */,
BD6A5E7123FCEB6C003B1E4D /* EpisodeController.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,11 @@ struct CharacterDetail: View {
Text("Episodes").font(.title).bold()
ScrollView {
VStack {
ForEach (episodes ,id: \.self) { episode in
ForEach (episodes ,id: \.id) { episode in
Button(action: {
print("wow")
self.show_modal = true
}) {
EpisodeView(episode: episode)
}.sheet(isPresented: self.$show_modal) {
EpisodeModalView(episode: episode)
}
}
}
Expand Down
30 changes: 0 additions & 30 deletions FlinkChallenge/FlinkChallenge/Views/EpisodeModalView.swift

This file was deleted.

0 comments on commit 2a96b21

Please sign in to comment.